Quote:
Originally Posted by Astram
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
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