24.01.2019, 07:13
This is your issue:
Rows start at 0, your iteration starts at 1.
You could do something like this to achieve your goal:
pawn Code:
for(new i = 1; i < rows && i < MAX_HOUSES; i ++)
You could do something like this to achieve your goal:
pawn Code:
new G_HOUSES_SPAWNED = 0;
for(new i; i < rows && i < MAX_HOUSES; i++){
G_HOUSES_SPAWNED++;
HouseInfo[ G_HOUSES_SPAWNED ][ var_pppp ] = cache_get_field_content_int(i, "ID");
}

