break;
#1

Hi,

Can i break cikle like this:

Код:
for(new i  = 0; i < 8; i ++ )
{
foreach(new n : Player)
{
///
}
break;
}
It break i cikle ?
Reply
#2

Banditukas, ne 'cikle', o 'loop' DD

(Englis translation: Banditukas, loop, not 'cikle' DD)
You can, but that's pointless. It will break the loop after foreach loop has ended.

You should use this instead:
Код:
foreach(new n : Player)
{
///
}
Or tell what you want to do. I'll try to help
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)