29.08.2015, 12:24
That's just not how foreach works. It should be used like this:
"i" is where the playerid is stored and "Players" is an iterator. When a player connects they are added to the Players iterator and they are removed when they disconnect.
Here is a post about this in more detail. It also looks at writing your own iterator.
pawn Код:
foreach(new i : Players)
Here is a post about this in more detail. It also looks at writing your own iterator.