03.01.2014, 04:50
The only way I can think of is this. (Not sure if its what you need)
1. What is bigger? MAX_HOUSES or MAX_FURNITURE? Take the bigger one and put it into the for loop and the other in while loop.
1. What is bigger? MAX_HOUSES or MAX_FURNITURE? Take the bigger one and put it into the for loop and the other in while loop.
pawn Код:
for(new i = 0; i < MAX_HOUSES; i++)
{
//house code.
while(i < MAX_FURNITURE)
{
// furniture code.
}
}