Quote:
Originally Posted by Sjn
PHP код:
GetConnectedPlayers()
{
new
ConnectedPlayers;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(i) || i == INVALID_PLAYER_ID) continue;
ConnectedPlayers++;
}
return ConnectedPlayers;
}
|
How could i be INVALID_PLAYER_ID when the max value that i will be is MAX_PLAYERS?