Question about for loops
#1

Hello, While looking in some game modes, i saw this loop
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        // do the stuff here.
    }
}
Question is, why should we check if the player is connected or not? even though it works without checking the player
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: 2 Guest(s)