Question about for loops
#3

For most things this is indeed a redundant check since other functions also have inbuilt connection checks. Though you will need to evaluate every case separately. On a side note, I use this configuration:

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(i)) continue;

    // do the stuff here.
}
In before someone comes blabbing about foreach.
Reply


Messages In This Thread
Question about for loops - by CoDeZ - 02.02.2013, 18:37
Re: Question about for loops - by MP2 - 02.02.2013, 18:42
Re: Question about for loops - by Vince - 02.02.2013, 18:43
Re: Question about for loops - by CoDeZ - 02.02.2013, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)