foreach loop preferencing id0 over anyone else?
#5

Turns out I had bad code terminating the loop early due to the function never finishing, because I have a dedicated server I test this on and something outside of sa-mp decided not to send a value back and just infinitely looped, I didn't notice the asynchronous loop not returning to the sa-mp server, so it basically timed out the for loop and started again from player 0, under certain conditions it would return a value and the loop continued, which is why the erratic number pattern was printed into chat instead of a smooth 0/1/0/1/0/1/0/1

tl;dr, plugin code gone bad, didn't talk back to for loop, loop would fail and return itself ( safety or else it hangs the whole server ) and now it's fixed.
Reply


Messages In This Thread
foreach loop preferencing id0 over anyone else? - by Hoborific - 30.01.2014, 06:09
Re: foreach loop preferencing id0 over anyone else? - by Patrick - 30.01.2014, 06:35
Re: foreach loop preferencing id0 over anyone else? - by Hoborific - 30.01.2014, 06:38
Re: foreach loop preferencing id0 over anyone else? - by Threshold - 30.01.2014, 10:18
Re: foreach loop preferencing id0 over anyone else? - by Hoborific - 30.01.2014, 10:25

Forum Jump:


Users browsing this thread: 5 Guest(s)