Quote:
Originally Posted by AndySedeyn
Or you could do:
PHP код:
mysql_tquery(mysql, "SELECT * FROM buildings", "LoadBuildings", "");
And then in the function that you call with the query above:
PHP код:
forward LoadBuildings();
public LoadBuildings() {
for(new i = 0, j = cache_get_row_count(); i != j; i ++) if(i < MAX_BUILDINGS) {
// code
}
return true;
}
|
Could you please describe the difference of your loop and mine if you have the patience?