foreach problems
#1

I've replaced for(new i=0; i<SLOTS; i++) with foreach(LCS_Player, i)

Since then it's causing the server to lag hard, and I'm unable to rejoin the server after leaving. It connects to the server but doesn't go further.

I removed Iter_Add(LCS_Player, playerid); and Iter_Remove(LCS_Player, playerid); from OnPlayerConnect and OnPlayerDisconnect and it worked fine.

I'm not sure what I've done wrong.


new Iterator:LCS_Player<SLOTS>;
Reply


Messages In This Thread
foreach problems - by _Outbreak_ - 23.05.2011, 12:52

Forum Jump:


Users browsing this thread: 2 Guest(s)