Jump to content
  • 0
Sign in to follow this  
Hakuryuu

Help...

Question

Command:

 

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’ 

 

Please help...

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

try this

 

 

ACMD(helper){    int new_group = 0;    nullpo_retr(-1, sd);    if (!pcg->exists(3) || !pcg->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.");        pcg->reload;/* update cache */        return 0;    }        if ( sd->group_id == 3) {        sd->group_id = 4;        clif->message(fd,"Mensagens do sistema Helper desativo.");                pcg->reload;/* update cache */        return 0;    }    return 0;} 

Share this post


Link to post
Share on other sites
  • 0

try this

 

ACMD(helper){    int new_group = 0;    nullpo_retr(-1, sd);    if (!pcg->exists(3) || !pcg->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.");        pcg->reload(sd);/* update cache */        return 0;    }        if ( sd->group_id == 3) {        sd->group_id = 4;        clif->message(fd,"Mensagens do sistema Helper desativo.");                pcg->reload(sd);/* update cache */        return 0;    }    return 0;} 
Edited by ossi0110

Share this post


Link to post
Share on other sites
  • 0

 

try this

 

ACMD(helper){    int new_group = 0;    nullpo_retr(-1, sd);    if (!pcg->exists(3) || !pcg->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.");        pcg->reload(sd);/* update cache */        return 0;    }        if ( sd->group_id == 3) {        sd->group_id = 4;        clif->message(fd,"Mensagens do sistema Helper desativo.");                pcg->reload(sd);/* update cache */        return 0;    }    return 0;} 
 

 

atcommand.c: In function ‘atcommand_helper’:atcommand.c:3123: error: too many arguments to function ‘pcg->reload’atcommand.c:3130: error: too many arguments to function ‘pcg->reload’atcommand.c:3113: warning: unused variable ‘new_group’ 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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