View Single Post
  #4  
Old 07-05-2011, 07:54 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Quote:
Originally Posted by Trakan View Post
Thanks , it work but
PHP Code:
triggerserver("gui", clientr.towntagrank, name, "tagOn", clientr.towntag); 
clientr.towntagrank does not work, it is not displayed to the player's name.
Looks out of syntax.
triggerserver(type, name, params)

Also it's unneccessary to send clientr. prefixed vars to the server, since it can read clientr. vars there.

Try
PHP Code:
triggerserver("gui", this.name, "tagOn"); 
Then, in your onActionServerSide function... something like this.
PHP Code:
function onActionServerSide(cmd) { 
  switch (
cmd) { 
    case 
"tagOn": { 
      
player.guild = clientr.towntag; 
      break; 
    } 
  } 
} 
Reply With Quote