03.06.2014, 05:00
"break" is a keyword which stops/execute the functions in a loop/switch case/if else.
For example:
"continue" is a keyword which continues to proceed the function in a loop.
For example:
For example:
pawn Код:
for(i=0;i<300;i++)
{
if(i==74) break; //here, When i==74 it will stop/execute the loop, and the loop will not proceed further.
else AddPlayerClass(i, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
}
For example:
pawn Код:
for(i=0;i<300;i++)
{
if(i==74) continue; //here, When i==74 it will continue with the loop without going to the next function ,which is AddPlayerClass (below)
else AddPlayerClass(i, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
}