17.09.2015, 15:10
Dude.. Don't use MAX_PLAYERS... Its not used anymore.. You should update yourself.
If you'd read the updates here: https://sampforum.blast.hk/showthread.php?tid=559572
You would see that it has been changed to:
Also I REPed you because u most likely created this for reps and also for your effort 
But please try to release correct stuff next time and don't teach people wrong ways.
If you'd read the updates here: https://sampforum.blast.hk/showthread.php?tid=559572
You would see that it has been changed to:
PHP код:
new HighestPlayerId = GetPlayerPoolSize();
for(new x=0; x <= HighestPlayerId; x++) { // (note the condition change from < to <=)
if(IsPlayerConnected(x)) { // do stuff with a player id
}
}

But please try to release correct stuff next time and don't teach people wrong ways.