Please help here @sann SRC Customize Modification

Greek

New member
Messages
19
Points
0
Location
127.0.0.1
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
default_smile.png


 
hahaha, I'm all over the place /huh

As for your last post:

Last line:    

return 0;

change to:

return true;

 
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
default_mellow.png


 
Back
Top