Quote:
Originally Posted by Trakan
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;
}
}
}