help with loop for(new loop
#5

No, like this:
pawn Код:
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(i)) continue;
    if(PlayerInfo[i][pjailed]) count++;
}
if(!count) SendClientMessage(playerid, -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: 3 Guest(s)