dreinor 5 Posted May 8, 2015 (edited) hi.. can someone help me, how do i fix this error after compiling? it says:warning C4700: uninitialized local variable 'tstatus' used struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16 skill_id, uint16 skill_lv) { struct skill_condition req; struct status_data *st; struct status_data *tstatus; struct status_change *sc; int i,hp_rate,sp_rate, sp_skill_rate_bonus = 100; uint16 idx;i tried to add the red colored code in the block, how can i fix the error? anyone willing to help? thanks.. Edited May 8, 2015 by dreinor Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted May 8, 2015 hi.. can someone help me, how do i fix this error after compiling? it says: warning C4700: uninitialized local variable 'tstatus' used struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16 skill_id, uint16 skill_lv) { struct skill_condition req; struct status_data *st; struct status_data *tstatus; struct status_change *sc; int i,hp_rate,sp_rate, sp_skill_rate_bonus = 100; uint16 idx; i tried to add the red colored code in the block, how can i fix the error? anyone willing to help? thanks.. That function does not have any Id of target, so you cannot get target status.Possible way is to edit the part from which this function is called or edit the function to accept extra parameter which receieves target bl. Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 8, 2015 you can check target's status in int skill_attack(...)andint skill_castend_nodamage_id(.....) Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted May 8, 2015 Maybe I misinterpreted, I guess gemstone requirement is checked before target selection, so you have to give gemstone back after skill is used, that's the way I can think of. Quote Share this post Link to post Share on other sites
hi.. can someone help me, how do i fix this error after compiling? it says:
warning C4700: uninitialized local variable 'tstatus' used
i tried to add the red colored code in the block, how can i fix the error? anyone willing to help? thanks..
Share this post
Link to post
Share on other sites