samsudin 2 Posted October 26, 2015 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 Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted October 26, 2015 battle_config.vending_max_value To battle->bc->vending_max_value Quote Share this post Link to post Share on other sites
0 samsudin 2 Posted October 26, 2015 (edited) 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 October 26, 2015 by samsudin Quote Share this post Link to post Share on other sites
hi,
how to fix this :
battle_config is undefine
did i miss something?
also
how to fix that, thank you
Share this post
Link to post
Share on other sites