24.09.2016, 06:35
PHP код:
forward LoadHouses();
public LoadHouses()
{
new Hstring[250];
mysql_format(sql,Hstring,sizeof(Hstring),"SELECT * FROM `houses` ORDER BY `houses`.`ID` ASC");
mysql_tquery(sql,Hstring,"","");
for(new i=0; i<= MAX_HOUSES ; i++)
{
HouseInfo[i][hID] = cache_get_field_content_int(0,"ID");
cache_get_field_content(0,"Owner",HouseInfo[i][hOwner],sql,129);
HouseInfo[i][hPrice] = cache_get_field_content_int(0,"Price");
cache_get_field_content(0,"Name",HouseInfo[i][hDiscription],sql,129);
HouseInfo[i][hInteriorX] = cache_get_field_content_float(0,"InteriorX");
HouseInfo[i][hInteriorX] = cache_get_field_content_float(0,"InteriorY");
HouseInfo[i][hInteriorZ] = cache_get_field_content_float(0,"InteriorZ");
HouseInfo[i][hExteriorX] = cache_get_field_content_float(0,"ExteriorX");
HouseInfo[i][hExteriorY] = cache_get_field_content_float(0,"ExteriorY");
HouseInfo[i][hExteriorZ] = cache_get_field_content_float(0,"ExteriorZ");
HouseInfo[i][hOwned] = cache_get_field_content_int(0,"Owned");
HouseInfo[i][hRentabil] = cache_get_field_content_int(0,"Rentabil");
}
CreateTXD();
printf("Houses Loaded!");
return 1;
}
PHP код:
[09:29:25] [DEBUG] mysql_format - connection: 1, len: 250, format: "SELECT * FROM `houses` ORDER BY `houses`.`ID` ASC"
[09:29:25] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `houses` ORDER BY `houses`.`ID` ASC", callback: "(null)", format: "(null)"
[09:29:25] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ID", connection: 1
[09:29:25] [WARNING] cache_get_field_content_int - no active cache
[09:29:25] [DEBUG] cache_get_field_content - row: 0, field_name: "Owner", connection: 1, max_len: 129
[09:29:25] [WARNING] cache_get_field_content - no active cache
[09:29:25] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Price", connection: 1
[09:29:25] [WARNING] cache_get_field_content_int - no active cache
[09:29:25] [DEBUG] cache_get_field_content - row: 0, field_name: "Name", connection: 1, max_len: 129
[09:29:25] [WARNING] cache_get_field_content - no active cache
[09:29:25] [DEBUG] cache_get_field_content_float - row: 0, field_name: "InteriorX", connection: 1
[09:29:25] [WARNING] cache_get_field_content_float - no active cache
[09:29:25] [DEBUG] cache_get_field_content_float - row: 0, field_name: "InteriorY", connection: 1
[09:29:25] [WARNING] cache_get_field_content_float - no active cache
[09:29:25] [DEBUG] cache_get_field_content_float - row: 0, field_name: "InteriorZ", connection: 1
[09:29:25] [WARNING] cache_get_field_content_float - no active cache
[09:29:25] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ExteriorX", connection: 1
[09:29:25] [WARNING] cache_get_field_content_float - no active cache
[09:29:25] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ExteriorY", connection: 1
[09:29:25] [WARNING] cache_get_field_content_float - no active cache
[09:29:25] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ExteriorZ", connection: 1
[09:29:25] [WARNING] cache_get_field_content_float - no active cache
[09:29:25] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Owned", connection: 1
[09:29:25] [WARNING] cache_get_field_content_int - no active cache
[09:29:25] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Rentabil", connection: 1
[09:29:25] [WARNING] cache_get_field_content_int - no active cache