29.01.2010, 14:06
Heyho!
I've got a little question here. First an example:
1. Will the code after the loop be executed, when the loop is stopped?
2. Does it work to use "return 0;" for stopping a loop?
3. If yes, will the code after the loop be executed?
4. Is there a other way to stop the loop, except changing one of the "while"-conditions (here Var1 or Var2)?
Thanks,
DeathOnaStick
I've got a little question here. First an example:
pawn Код:
Var1=4;
Var2=4;
Var3=0;
while(Var1==Var2)
{
if(Var3>=Var2)break;
Var3++;
}
Var4=Var3;
2. Does it work to use "return 0;" for stopping a loop?
3. If yes, will the code after the loop be executed?
4. Is there a other way to stop the loop, except changing one of the "while"-conditions (here Var1 or Var2)?
Thanks,
DeathOnaStick