public LoadProperty()
{
housess = cache_num_rows();
for(new i = 1; i <= housess; i++)
{
new h = i - 1;
HouseInfo[hID] = cache_get_field_content_int(h, "ID");
HouseInfo[hEntrancex] = cache_get_field_content_float(h, "Entrancex");
HouseInfo[hEntrancey] = cache_get_field_content_float(h, "Entrancey");
HouseInfo[hEntrancez] = cache_get_field_content_float(h, "Entrancez");
HouseInfo[hExitx] = cache_get_field_content_float(h, "Exitx");
HouseInfo[hExity] = cache_get_field_content_float(h, "Exity");
HouseInfo[hExitz] = cache_get_field_content_float(h, "Exitz");
cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
HouseInfo[hValue] = cache_get_field_content_int(h, "Value");
HouseInfo[hHel] = cache_get_field_content_int(h, "Hel");
HouseInfo[hArm] = cache_get_field_content_int(h, "Arm");
HouseInfo[hInterior] = cache_get_field_content_int(h, "Interior");
HouseInfo[hLock] = cache_get_field_content_int(h, "Lockk");
HouseInfo[hOwned] = cache_get_field_content_int(h, "Owned");
HouseInfo[hRent] = cache_get_field_content_int(h, "Rent");
HouseInfo[hRentabil] = cache_get_field_content_int(h, "Rentabil");
HouseInfo[hTakings] = cache_get_field_content_int(h, "Takings");
HouseInfo[hLevel] = cache_get_field_content_int(h, "Level");
HouseInfo[hVirtual] = cache_get_field_content_int(h, "Virtual");
CreateDynamicMapIcon(HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez], 31, COLOR_WHITE, 0, -1, -1, 1000);
}
for(new i = 1; i <= housess; i++)
{
OnPropTextdrawUpdate(1, i);
}
printf("Houses: %d", housess);
}