19.12.2016, 19:22
Quote:
So basically I would be looping with a max number of the gMaxPlayers rather than the MAX_PLAYERS.
|
Player 3 and 4 are online. Your loop will go 0 .. 1 .. stop (2 players online only) and basically it will do nothing for those two connected players.
Quote:
I never really looked into the foreach structure, but I do think programming is a place where the sky's the limit. Why should I count on someone's else? (Not taking anything from ******, he's infact, more of an idol for me)
|
Then go for foreach as everyone has suggested. It is the best method for player-loops.