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

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...

×
×
  • Create New...

Important Information

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