Schreib erstmal deinen Code ordentlich 
mysql_function_query(dbhandle, "SELECT * FROM `haus`", true, "OnHausesLoad", ""); //OnGameModeInit
public OnHausesLoad()
{
new num_rows = cache_get_row_count(dbhandle);
if(!num_row)return;
for(new i=0, id, tmp_name[MAX_PLAYER_NAME]; i<num_rows; i++)
{
id=getFreeHausID(),
hInfo[id][h_id] = cache_get_field_content_int(i, "id", dbhandle),
cache_get_field_content(i, "besitzer", hInfo[id][h_besitzer], dbhandle, MAX_PLAYER_NAME),
hInfo[id][h_x] = cache_get_field_content_float(i, "h_x", dbhandle),
hInfo[id][h_y] = cache_get_field_content_float(i, "h_y", dbhandle),
hInfo[id][h_z] = cache_get_field_content_float(i, "h_z", dbhandle),
hInfo[id][ih_x] = cache_get_field_content_float(i, "ih_x", dbhandle),
hInfo[id][ih_y] = cache_get_field_content_float(i, "ih_y", dbhandle),
hInfo[id][ih_z] = cache_get_field_content_float(i, "ih_z", dbhandle),
hInfo[id][h_interior] = cache_get_field_content_int(i, "h_interior", dbhandle),
hInfo[id][h_preis] = cache_get_field_content_int(i, "h_preis", dbhandle),
hInfo[id][h_mietpreis] = cache_get_field_content_int(i, "h_mietpreis", dbhandle),
hInfo[id][h_maxmieter] = cache_get_field_content_int(i, "h_maxmieter", dbhandle),
hInfo[id][h_geschlossen] = cache_get_field_content_int(i, "h_geschlossen", dbhandle),
printf("i = %d - id = %d - MySQLID: %d - Besitzer: %s", i, id, hInfo[id][h_id],hInfo[id][h_besitzer]),
updateHaus(id);
tmp_name[0] = '\0', id = false;
}
return;
}
Zeig mal folgende Funktionen, "updateHaus" und "getFreeHausID".
mfg 