Jump to content
  • 0
Sign in to follow this  
Greek

Please help here @sann SRC Customize Modification

Question

I just compile it and i got this error
Here's the script.

/*==========================================
 * @sann by Donatien - Lain Ragnarok Online
 * Custom Staff Announce Command for rAthena
 * Rev. 17134
 *------------------------------------------*/
ACMD_FUNC(sann)
{
 nullpo_retr(-1,  sd);
 memset(atcmd_output, '0', sizeof(atcmd_output));

 if(!message  ||  !*message)  {
     clif->message(fd, "Please, enter a message (usage: @sann <message>).");
     return false;
   }
  if(pc->get_group_level(sd) == 1){
   sprintf(atcmd_output, "[super User] %s : %s", sd->status.name, message);
   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF9900, 0x190, 12, 0, 0);
  }
  if(pc->get_group_level(sd) == 2){
   sprintf(atcmd_output, "[super User] %s : %s", sd->status.name, message);
   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF9900, 0x190, 12, 0, 0);
  }
  if(pc->get_group_level(sd) == 3){
  sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
  }
  if(pc->get_group_level(sd) == 4){
  sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
  }
  if(pc->get_group_level(sd) == 10){
  sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
  }
else if(pc->get_group_level(sd) == 99){
sprintf(atcmd_output, "[Admin] %s : %s", sd->status.name, message);
   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x99CCFF, 0x190, 12, 0, 0);
}
 return 0;
}



Here's the error i got after i compile it.

e7mUWZr.png


jbi.png



Hope you help me again :)

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

hahaha, I'm all over the place /huh

 

As for your last post:

Last line:    

return 0;

change to:

return true;

bro Xgear i still got problem,

why other staff is same in broadcast?

like this

 

9aVm3Pq.png

 

Geek GM Lvl is 4

and Marj GM Lvl is 3

 

    else if(pc->get_group_level(sd) == 3){

  sprintf(atcmd_output, "[script Manager] %s : %s", sd->status.name, message);

   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);

  }

       else if(pc->get_group_level(sd) == 4){

       sprintf(atcmd_output, "[Event Manager] %s : %s", sd->status.name, message);

   intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0xFF66FF, 0x190, 12, 0, 0);

 

Help again :mellow:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.