17.04.2015, 10:51
Quote:
If you want max 250 objects then try this
new MAX_HOUSEOBJECTS = 250; for(new 1 = 0; 1 < MAX_HOUSEOBJECTS; i++) |
Eg.
pawn Код:
new variable[MAX_HOUSEOBJECTS];
pawn Код:
Furniture[MAX_HOUSES][MAX_OBJECTS_PER_HOUSE];
--
It depends what you're trying to do... if you're looping through ALL house objects in EVERY house, then you need to loop through all houses at the same time.
pawn Код:
for(new h = 0; h < MAX_HOUSES; h++)
{
//check if house exists here?
//check if house is owned here?
for(new i = 0; i < MAX_OBJECTS_PER_HOUSE; i++)
{
if(!IsValidDynamicObject(Furniture[h][i])) continue;
//Everything can be done where objectid = Furniture[h][i]
}
}