23.05.2011, 12:52
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>;
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>;