#1

can some explain me what is for break function in pawno ? becouse in wiki i dont understand thx
Reply
#2

Break is used when you want to stop a loop.

pawn Код:
for(new something=0; something<somethingElse; something++)
{
    if(something == 10)
    {  
        //do what you want
        break; //stops the loop if something reaches 10
    }
}
Bad example, but it get's to the point.
Reply
#3

ahhh thx very much
Reply
#4

No problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)