[Ajuda] Loop
#4

assim?

pawn Код:
Teste(playerid)
{    
    for(new x; x < 5; ++x)
    {
        if(!strcmp(Clan[x], "Nenhum", true))
        {  
            new teste[128];
            format(teste, sizeof(teste), "Slot clan %d liberado", x);
            MsgToPlayer(teste);
            break;
        }
       
        if(x == 4) //ULTIMO numero do loop
            MsgToPlayer("ERROR: Nada liberado '-'");
    }
}
Reply


Messages In This Thread
Loop - by DrTHE - 27.08.2012, 21:39
Re: Loop - by WeenSoares_ - 27.08.2012, 22:49
Re: Loop - by Victor' - 27.08.2012, 22:51
Re: Loop - by Kmatsu - 28.08.2012, 01:08
Re: Loop - by jpeg - 28.08.2012, 01:11
Re: Loop - by Joker_OutLock - 28.08.2012, 01:12
Re: Loop - by [JD]BlackFire - 28.08.2012, 01:19
Re: Loop - by Kmatsu - 28.08.2012, 01:21
Re: Loop - by jpeg - 28.08.2012, 01:24
Re: Loop - by paulor - 28.08.2012, 01:28

Forum Jump:


Users browsing this thread: 2 Guest(s)