ACMD(helper){ int new_group = 0; nullpo_retr(-1, sd); if (!pc_group_exists(3) || !pc_group_exists(4)) { clif->message(fd, msg_fd(fd,1227)); // Specified group does not exist. return -1; } if ( sd->group_id == 4) { sd->group_id = 3; clif->message(fd,"Mensagens do sistema Helper ativo."); pc_group_pc_load(sd);/* update cache */ return 0; } if ( sd->group_id == 3) { sd->group_id = 4; clif->message(fd,"Mensagens do sistema Helper desativo."); pc_group_pc_load(sd);/* update cache */ return 0; } return 0;}
Error:
atcommand.c: In function ‘atcommand_helper’:atcommand.c:3117: warning: implicit declaration of function ‘pc_group_exists’atcommand.c:3124: warning: implicit declaration of function ‘pc_group_pc_load’atcommand.c:3113: warning: unused variable ‘new_group’
Command:
Error:
Please help...
Share this post
Link to post
Share on other sites