19.07.2016, 21:01
It returns the highest player's ID currently in the server.
Let's say MAX_PLAYERS is re-defined to 50 and there are 2 players connected in the server with IDs 0 and 4 (3 players disconnected). The loop will go from 0 to 4 whereas normally would go up to 50 (using i < MAX_PLAYERS).
Let's say MAX_PLAYERS is re-defined to 50 and there are 2 players connected in the server with IDs 0 and 4 (3 players disconnected). The loop will go from 0 to 4 whereas normally would go up to 50 (using i < MAX_PLAYERS).