![]() |
Loadlines not working
Hi,
PHP Code:
playerlist.txt is in levels/ Folder /find playerlist.txt playerlist.txt: downloadable, 213 byte, 2007-07-19 14:18:44 i also tried. "playerlist.txt" and without the tstaticvar thing but it seems like it doesnt read the file well for some reason it gave method not implented whn not pointing it lol |
Hello are you doing that just be to irritating? It's working. -.-
|
it isnt
wait you mean the script or posting? it hates echo lines :D |
make sure it's serverside not clientside
|
You're declaring it an object when loadlines returns and array first off. You need to fix that! In short, remove the TStaticVar declaration because it COULD be causing problems.
Secondly, don't use this. static vars use temp. prefixes because they are temporary and are deleted when the function is over. Best for testing as that's seemingly what you're doing. |
You need to give rights to the (npcserver) for reading and writing of files.
1): /openrights (npcserver) 2): Set folder rights to: PHP Code:
|
oh yeah, works
thanks i always forget that the npc-serv needs rights :x |
Quote:
PHP Code:
Second, TStaticVar would change nothing. Third, dynamic variables are case-sensitive last time I checked, its usually best not to use capital letters in their names unless you're going to do the same for your whole server or you will get confused. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 01:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.