help with loop for(new loop
#2

it's a loop, it loops through players and give the result every time, if you wanna check for no players in jail use this,
pawn Код:
for(new x = 0; x<MAX_PLAYERS; x++)
{
    if(PlayerInfo[x][pjailed] == 1)
    {
        //list jailed players
    }
    else if(x == MAX_PLAYERS -1)
    {
        //no players in jail
    }
}
Reply


Messages In This Thread
help with loop for(new loop - by danish007 - 14.01.2015, 13:22
Re: help with loop for(new loop - by xVIP3Rx - 14.01.2015, 13:29
Re: help with loop for(new loop - by Vince - 14.01.2015, 14:19
Re: help with loop for(new loop - by xVIP3Rx - 14.01.2015, 14:29
Re: help with loop for(new loop - by Threshold - 14.01.2015, 15:39
Re: help with loop for(new loop - by danish007 - 14.01.2015, 16:09
Re: help with loop for(new loop - by danish007 - 18.01.2015, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)