16.03.2013, 12:19
Is the loop working?
I'm not sure if this would solve anything, but change the loop to for(new i = 0; i < MAX_PLAYERS; i++), remove the '='.
That's all I see.
You might want to debug the code if you're not sure, just place 'print("So far 1");', 'print("So far 2");' troughout the function, and when you call it, look in your console to see whether it's called or not.
I'm not sure if this would solve anything, but change the loop to for(new i = 0; i < MAX_PLAYERS; i++), remove the '='.
That's all I see.
You might want to debug the code if you're not sure, just place 'print("So far 1");', 'print("So far 2");' troughout the function, and when you call it, look in your console to see whether it's called or not.