View Single Post
  #8  
Old 06-15-2006, 05:46 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
its triggerclient("gui",weaponname,param1,param2);

Your problem is that you are expecting it to work like triggeraction and it does not.

It will be:
NPC Code:

function onActionServerSide(){
triggerclient("gui",this.name,"dothis","forme");
}
//#CLIENTSIDE
function onCreated() triggerserver("gui",this.name,"");
function onActionClientSide(){
switch (params[0]){
case "dothis":
echo(params[1]);
}
}

Reply With Quote