![]() |
loadlines
I'm trying to use loadlines to make a kind of web browser for txt files in the folder "levels/sites/account_pagename.txt"
I don't really know quite what I'm doing though, and this is just returning 0: PHP Code:
NPC Code:<center><h1>Vash-Aniki</h1></center> I've tried both levels/sites/ and just sites/. Neither have worked. |
I dunno about this, but your loading a.client.browserview, and tries
to echo a.clientr.browserview, also, a is made into an object by using findplayer, so, it would make: player's client.browserview into the lines that loadlines load.. I'm guessing thats what you are doing, but the only thing I see, is that you echo the wrong object |
I managed to get it to load right, and a sendtorc() displays it right, but MLTextCtrl is just returning 0.
PHP Code:
|
When I am changing gui attrs outside the control, or destroying, I usually
do like ( @ parent_gui).destroy(); Just a question, inside MLTextCtrl, you are you using client. etc..? have you tried to set the client file to a thiso. string and load it as thiso.*? |
Quote:
PHP Code:
|
It's returning 0 in the echo...o.o
I checked the file with /find...its there...o.o I don't get it o.o whats wrong? I've tried loadstring() too, that doesn't appear to even do anything...doesn't even return 0. |
Hmmm...weird I tested loadlines() with a gmap in a different folder...it worked then.
But for some reason loadstring() just doesn't work. |
(triple post, yeah)
Ah, I got it to work. =) Of course, with loadlines, now it'll completely butcher the data in the file whenever theres break (as in someone hit enter) or theres a comma. =/ |
Make sure you are accessing the right file by script, echo the filename. Also in your clientside code you have written client.broswerview once, that spelling needs to be fixed.
|
Quote:
Quote:
|
| All times are GMT +2. The time now is 03:27 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.