Greek 0 Posted July 1, 2013 I just compile it and i got this errorHere'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. Hope you help me again Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 1, 2013 Change: ACMD_FUNC(sann) to ACMD(sann) Quote Share this post Link to post Share on other sites
0 Greek 0 Posted July 1, 2013 Argggggg you again bro XgearHAHA Thanks Quote Share this post Link to post Share on other sites
0 Greek 0 Posted July 1, 2013 Change: ACMD_FUNC(sann) to ACMD(sann) how to fix this, Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 1, 2013 hahaha, I'm all over the place /huh As for your last post: Last line: return 0; change to: return true; Quote Share this post Link to post Share on other sites
0 Greek 0 Posted July 1, 2013 HAHAbtw thanks again Quote Share this post Link to post Share on other sites
0 Greek 0 Posted July 1, 2013 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 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 Quote Share this post Link to post Share on other sites
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.
Hope you help me again
Share this post
Link to post
Share on other sites