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

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.