24.01.2013, 14:22
No. You had
i <= MAX_PLAYERS
It's supposed to be
i < MAX_PLAYERS
If you did it your way, it will try to access player 501 (or whatever your max players is + 1), which is above the array size.
i <= MAX_PLAYERS
It's supposed to be
i < MAX_PLAYERS
If you did it your way, it will try to access player 501 (or whatever your max players is + 1), which is above the array size.