Nu stiu ce are de nu merge cu spoiler, ia-l asa:
Am uitat sa copiez iar codu, ia-l:
public LoadProperty()
{
housess = cache_num_rows();
for(new i = 0; 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[hPrice] = cache_get_field_content_int(h, "Prices"); HouseInfo[hHel] = cache_get_field_content_int(h, "Hel"); HouseInfo[hMusic] = cache_get_field_content_int(h, "Music"); HouseInfo[hInterior] = cache_get_field_content_int(h, "Interior"); HouseInfo[hInteriorType] = cache_get_field_content_int(h, "InteriorType"); 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"); /*Incep garajele*/ HouseInfo[gExtX] = cache_get_field_content_float(h, "gExtX"); HouseInfo[gExtY] = cache_get_field_content_float(h, "gExtY"); HouseInfo[gExtZ] = cache_get_field_content_float(h, "gExtZ"); HouseInfo[gAngel] = cache_get_field_content_float(h, "gAngel"); HouseInfo[hgaraj] = cache_get_field_content_int(h, "garaj"); HouseInfo[gSlot] = cache_get_field_content_int(h, "gSlot"); } for(new i = 0; i <= housess; i++) { OnPropTextdrawUpdate(1, i); } printf("[LOADING] %d houses loaded.", housess); printf("[LOADING] %d turfs loaded.", turfsss); }
EDIT: Aparent nu merge nici asa, ia-l de aici: https://pastebin.com/XCBA15pQ