27.12.2010, 11:54
break will stop the loop from excecuting which is what you want.
Return stops everything after that from being excecuted.
The example in the first post will work as you want, it is advised to put the return at the end of the callback otherwise everything after the first loop won't be excecuted.
Hope this helps
Return stops everything after that from being excecuted.
The example in the first post will work as you want, it is advised to put the return at the end of the callback otherwise everything after the first loop won't be excecuted.
pawn Код:
// Loop 1
// Loop 1 returns true for your if statement
break;
// Loop 2 (Which is a new loop under Loop 1 like in your example)
// Loop 2 ends
return 1;

