View Single Post
  #7  
Old 05-29-2011, 05:49 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
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.
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote