View Single Post
  #14  
Old 10-16-2009, 11:37 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Well, on the serverside, you got:
PHP Code:
if (params[0] == "settag"){ 
  
getguildnick(params[1], player.account); 

I suppose getguildnick() takes the guild and the account as arguments (can't look it up, wiki's down ), but you currently pass the account to it twice, since in the case of /settag, params[1] is the account (you are passing it to the serverside in your trigger). Also, the function does not set the nick of the player, I'm quite sure about that. So you will have to do something like this:
PHP Code:
temp.nick getguildnick(temp.guildplayer.account);
findPlayer(player.account).nick temp.nick SPC "(" temp.guild ")"
Reply With Quote