28.01.2012, 18:48
Better use
You can use continue; or break; only if you are in a compound block of loop..
Example:
pawn Код:
if(id > -1) {
//All things in here...
}
Example:
pawn Код:
//Loop:
for (new index = 0; index < 32; index++)
{
if (index == 16) continue; //this will skip Index 16.
if (index == 22) break; //this will stop the loop when it reaches 22.
}
//Other:
function test2()
{
if (5 != 7) continue; //<-- continue won't work/illogical or w/e?.
}