Little Help
#2

That's just not how foreach works. It should be used like this:
pawn Код:
foreach(new i : Players)
"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.
Reply


Messages In This Thread
Little Help - by Sanady - 29.08.2015, 12:01
Re: Little Help - by Finn707 - 29.08.2015, 12:24
Re: Little Help - by R0 - 29.08.2015, 12:59
Re: Little Help - by Sanady - 29.08.2015, 17:35
Re: Little Help - by Sanady - 29.08.2015, 18:50
Re: Little Help - by Trollerz - 29.08.2015, 18:51
Re: Little Help - by Sanady - 29.08.2015, 19:01
Re: Little Help - by DRIFT_HUNTER - 29.08.2015, 19:39
Re: Little Help - by R0 - 29.08.2015, 21:59
Re: Little Help - by Nixco - 29.08.2015, 22:14

Forum Jump:


Users browsing this thread: 3 Guest(s)