Jump to content
  • 0
samsudin

need help about battle_config

Question

hi, 

 

how to fix this :

 

unsigned int MinPrice = battle_config.vending_max_value, MaxPrice = 0;

battle_config is undefine  

 

did i miss something?  

also 

snprintf(atcmd_output,CHAT_SIZE_MAX, "Warped to %s", pl_sd->status.name);

how to fix that, thank you :)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

battle_config.vending_max_value

To

battle->bc->vending_max_value

thank you @@Dastgir

 

how about this 

 

if( pl_sd->vender_id ) //check if player is vending					{						for (j = 0; j < pl_sd->vend_num; j++) {							if(pl_sd->vending[j].value == MinPrice)							{							pc->setpos(sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, 3);							snprintf(atcmd_output,CHAT_SIZE_MAX, "Warped to %s", pl_sd->status.name);							clif->message(fd, atcmd_output);							}						}					}

'atcmd_output' : undeclared identifier

 

 

fix :  sorry im forgot adding  static char atcmd_output[CHAT_SIZE_MAX]; 

 

thank you all :)

Edited by samsudin

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

×
×
  • Create New...

Important Information

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