13.06.2015, 17:05
If there are let's say 5 rows and MAX_HOUSES is defined as 50, it will call the functions 45 times without having a result. That's why you loop according to the rows returned:
pawn Код:
for (new i, j = cache_get_row_count(); i != j; ++i)