View Single Post
  #5  
Old 08-23-2011, 09:50 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Crow View Post
There's players and allplayers. The first always refers to the players in the level the code is executed in. The latter refers to all players on the server.
To clarify, allplayers is an array of player objects (TServerPlayer) for every player online.

players is an array of every player in the current level (on GMAPs, every player within roughly a one-level radius).

When you're doing players.size(), it's just returning the number of items in the array.
__________________
Reply With Quote