This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
This is an example of the for-loop bug found in patch 2.0.10.
This is the code:
auto2218957F_ae = 5; auto2218957F_ai = 1; lv_x = 1; for ( ; ( (auto2218957F_ai >= 0 && lv_x <= auto2218957F_ae) || (auto2218957F_ai <= 0 && lv_x >= auto2218957F_ae) ) ; lv_x += auto2218957F_ai ) { UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, (StringExternal("Param/Value/7DE97036") + IntToText(lv_x))); } UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, (StringExternal("Param/Value/294008FC") + IntToText(lv_x))); return true;
and it goes 1 2 3 4 5 6. Completely weird, I would have expected 1 2 3 4 5 5.
Well, seems like the variables aren't set back to the previous value anymore after they were checked by the for-loop. And yes, your not crazy :D
Jman1177 Owner
This is the code:
auto2218957F_ae = 5;
auto2218957F_ai = 1;
lv_x = 1;
for ( ; ( (auto2218957F_ai >= 0 && lv_x <= auto2218957F_ae) || (auto2218957F_ai <= 0 && lv_x >= auto2218957F_ae) ) ; lv_x += auto2218957F_ai ) {
UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, (StringExternal("Param/Value/7DE97036") + IntToText(lv_x)));
}
UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, (StringExternal("Param/Value/294008FC") + IntToText(lv_x)));
return true;
and it goes 1 2 3 4 5 6. Completely weird, I would have expected 1 2 3 4 5 5.
Well, seems like the variables aren't set back to the previous value anymore after they were checked by the for-loop. And yes, your not crazy :D