Question Info Function: break
#4

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
pawn Код:
public OnFilterScriptInit()
{
    for(new i = 0; i < 100; ++i)
    {
        printf("%i", i);
        if(i == 50)
        {
            break;
        }
    }
    return 1;
}
Will print: 0 1 2 3 4 5 6 ... 50
When i = 50, will stop the loop.

Understand?
yes, thanks

Thanks all.
Reply


Messages In This Thread
Question Info Function: break - by Speed++ - 06.07.2012, 19:02
Re: Question Info Function: break - by Jason` - 06.07.2012, 19:23
Re: Question Info Function: break - by Libra_PL - 06.07.2012, 19:25
Re: Question Info Function: break - by Speed++ - 06.07.2012, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)