16.07.2014, 10:30
'break' in this loop doesn't seem to be doing what i want it to do.
So obviously I have it start at 1, because I don't want a houseid to be 0, the first time it works fine and houseid ends up being 1, but after that, it keeps being 0, instead of 2, 3 etc.
If I don't use break, the houseid starts from 499 and descends (housedata has a limit of 500)
pawn Код:
for(new i = 1; i < sizeof(HouseData); i++)
{
if(HouseData[i][Created] == 0) houseid = i;
break;
}
If I don't use break, the houseid starts from 499 and descends (housedata has a limit of 500)