04.11.2009, 12:35
Quote:
Originally Posted by ~MaVe
You can't do something like random(MAX_PLAYERS), as some player slots may be empty, see if there would be these players:
0 1 2 3 4 5 6 then player 2 and 4 disconnect, it looks like that now: 0 1 3 5 6 |
just check if the player is connected if not call the function again
that would help the problem.