Correct usage of break.
#9

My programming teacher taught us that break is evil (I disagree, it has it purposes) but in this case it might be better solved with a while loop.

pawn Код:
new i = 0;
while(PlayaInfo[playerid][0][i] != 0 && i <= 3) { i++; }
Reply


Messages In This Thread
Correct usage of break. - by Alvin007 - 08.02.2015, 23:35
Re: Correct usage of break. - by Schneider - 08.02.2015, 23:44
Re : Correct usage of break. - by Alvin007 - 08.02.2015, 23:46
Re: Correct usage of break. - by PowerPC603 - 08.02.2015, 23:48
Re : Correct usage of break. - by Alvin007 - 09.02.2015, 00:06
AW: Correct usage of break. - by Nero_3D - 09.02.2015, 01:41
Re : Correct usage of break. - by Alvin007 - 09.02.2015, 01:46
Respuesta: Correct usage of break. - by CuervO - 09.02.2015, 03:31
Re: Correct usage of break. - by Vince - 09.02.2015, 06:42
Re : Correct usage of break. - by Alvin007 - 09.02.2015, 11:48

Forum Jump:


Users browsing this thread: 3 Guest(s)