View Single Post
  #6  
Old 08-13-2011, 10:20 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Astram View Post
Also, I have
PHP Code:
function onActionServerSide()
  {
  if (
params[0] == "debug")
    {
    
temp.filename "weapons/weaponDrag.txt"
    
temp.lines.loadlines(temp.filename); 
    
player.chat temp.lines;
    
player.triggerclient(this.name"load"temp.lines);
    }
  } 
and I have the weapon "Drag" on the server, but my player.chat always is "0"... Any help?
Quote:
Originally Posted by cbk1994 View Post
Does (npcserver) have read rights to it?
this, and you forgot the "gui" parameter before this.name on the triggerclient.

i would also believe that setting the player.chat wouldnt work due the textlimit on 256 chars, so try something like echo or sendrpgmessage instead
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you

Last edited by Deas_Voice; 08-13-2011 at 10:21 PM.. Reason: srry if it's an old thread, but w/e
Reply With Quote