04.04.2016, 15:22
Or you could do:
And then in the function that you call with the query above:
PHP код:
mysql_tquery(mysql, "SELECT * FROM buildings", "LoadBuildings", "");
PHP код:
forward LoadBuildings();
public LoadBuildings() {
for(new i = 0, j = cache_get_row_count(); i != j; i ++) if(i < MAX_BUILDINGS) {
// code
}
return true;
}