Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function LoadProperty() {
- mysql_query(SQL,"SELECT * FROM `houses` ORDER BY `houses`.`ID` ASC");
- housess = cache_num_rows();
- for(new i = 1; i <= housess; i++)
- {
- new h = i - 1;
- HouseInfo[i][hID] = cache_get_field_content_int(h, "ID");
- HouseInfo[i][hEntrancex] = cache_get_field_content_float(h, "Entrancex");
- HouseInfo[i][hEntrancey] = cache_get_field_content_float(h, "Entrancey");
- HouseInfo[i][hEntrancez] = cache_get_field_content_float(h, "Entrancez");
- HouseInfo[i][hExitx] = cache_get_field_content_float(h, "Exitx");
- HouseInfo[i][hExity] = cache_get_field_content_float(h, "Exity");
- HouseInfo[i][hExitz] = cache_get_field_content_float(h, "Exitz");
- cache_get_field_content(h, "Owner", HouseInfo[i][hOwner], SQL, 130);
- cache_get_field_content(h, "Discription", HouseInfo[i][hDiscription], SQL, 130);
- HouseInfo[i][hValue] = cache_get_field_content_int(h, "Value");
- HouseInfo[i][hHel] = cache_get_field_content_int(h, "Hel");
- HouseInfo[i][hArm] = cache_get_field_content_int(h, "Arm");
- HouseInfo[i][hInterior] = cache_get_field_content_int(h, "Interior");
- HouseInfo[i][hLock] = cache_get_field_content_int(h, "Lockk");
- HouseInfo[i][hOwned] = cache_get_field_content_int(h, "Owned");
- HouseInfo[i][hRent] = cache_get_field_content_int(h, "Rent");
- HouseInfo[i][hRentabil] = cache_get_field_content_int(h, "Rentabil");
- HouseInfo[i][hTakings] = cache_get_field_content_int(h, "Takings");
- HouseInfo[i][hLevel] = cache_get_field_content_int(h, "Level");
- HouseInfo[i][hVirtual] = cache_get_field_content_int(h, "Virtual");
- HouseInfo[i][hRadio] = cache_get_field_content_int(h, "Radio");
- }
- for(new i = 1; i <= housess; i++)
- {
- UpdateLabel(1,HouseInfo[i][hID]);
- }
- printf("Houses: %d", housess);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement