break in loop
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
That's because the break is unconditional and will always break at the first iteration. Use braces.
Unsure if I've done it right, because when the code executed it, it stopped executing and I couldn't input anymore commands (like froze the game, but I could still control the game..)

pawn Код:
for(new i = 1; i < sizeof(HouseData); i++)
            {
                while (HouseData[i][Created] == 0)
                {
                    houseid = i;
                }
            }
Reply


Messages In This Thread
break in loop - by Jack_Leslie - 16.07.2014, 10:30
Re: break in loop - by Vince - 16.07.2014, 10:32
Re: break in loop - by Jack_Leslie - 16.07.2014, 10:39
Re: break in loop - by Stanford - 16.07.2014, 10:55
Re: break in loop - by Jack_Leslie - 16.07.2014, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)