View Single Post
  #1  
Old 11-13-2007, 09:29 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Unhappy problem with addguildmember..

Hey, i want this to add to the guildguildname.txt,
so if i chat /AddGuild guildname accountname nickname it wound appear in the
guildguildname.txt
ex: /addguild LAT Deas_Voice Neo (then my account and nick appear in the guildLAT.txt as Deas_Voice:Neo)

PHP Code:
//#SERVERSIDE
function onActionServerSide() {
  if (
params[0] == "AddGuild") {
    
with (findplayer(params[0])) {
    
addguildmember( @params[1],params[0],player.nick);
 
//addguildmember(str guildname, str accountname, str nickname);
      
}
    }
  }

//#CLIENTSIDE
function onPlayerChats(){
 if (
player.chat.starts ("/AddGuild ")) {
triggerserver("gui",this.name,"AddGuild",player.account,player.chat.substring(10));
  }

get it?
and im also wondring whats the param for playernick so i used player.nick
please help me
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote