Everytime I use loadlines() or loadstring(), it just returns 0.
I'm triggering the server from the clientside, with the name of the script file being carried over from the serverside as the second parameter.
The first parameter defines if it's a weapon or a script.
PHP Code:
if(params[0] == "LoadScript"){
if(params[1] == "weapon"){
temp.filename = params[2];
temp.scr.loadlines("weapons/"@temp.filename@".txt");
findPlayer("Graal749838").chat = temp.scr;
}
}
This always returns 0 to my chat. I've even tried it with a full string, but still noting works.