03.07.2018, 14:39
How about this?
Код:
forward LoadHouses(); public LoadHouses() { new rows = cache_get_row_count(); for(new i = 0; i < rows; i++) { hInfo[i][HouseEX] = cache_get_field_content_float(0, "HouseEX"); hInfo[i][HouseEY] = cache_get_field_content_float(0, "HouseEY"); hInfo[i][HouseEZ] = cache_get_field_content_float(0, "HouseEZ"); cache_get_field_content_int(0, "HouseID", hInfo[i][HouseID]); hInfo[i][HouseCP] = CreateDynamicCP(hInfo[i][HouseEX], hInfo[i][HouseEZ], hInfo[i][HouseEZ], 1.5, .worldid = 0, .interiorid = 0, .streamdistance = 20.0); } }
Код:
mysql_tquery(dbHandle, "SELECT * FROM `houses`", "LoadHouses", "");