24.10.2010, 09:07
Break is used when you want to stop a loop.
Bad example, but it get's to the point.
pawn Код:
for(new something=0; something<somethingElse; something++)
{
if(something == 10)
{
//do what you want
break; //stops the loop if something reaches 10
}
}