Advertisement
Guest User

Untitled

a guest
Oct 27th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. function LoadProperty() {
  2. mysql_query(SQL,"SELECT * FROM `houses` ORDER BY `houses`.`ID` ASC");
  3. housess = cache_num_rows();
  4. for(new i = 1; i <= housess; i++)
  5. {
  6. new h = i - 1;
  7. HouseInfo[i][hID] = cache_get_field_content_int(h, "ID");
  8. HouseInfo[i][hEntrancex] = cache_get_field_content_float(h, "Entrancex");
  9. HouseInfo[i][hEntrancey] = cache_get_field_content_float(h, "Entrancey");
  10. HouseInfo[i][hEntrancez] = cache_get_field_content_float(h, "Entrancez");
  11. HouseInfo[i][hExitx] = cache_get_field_content_float(h, "Exitx");
  12. HouseInfo[i][hExity] = cache_get_field_content_float(h, "Exity");
  13. HouseInfo[i][hExitz] = cache_get_field_content_float(h, "Exitz");
  14. cache_get_field_content(h, "Owner", HouseInfo[i][hOwner], SQL, 130);
  15. cache_get_field_content(h, "Discription", HouseInfo[i][hDiscription], SQL, 130);
  16. HouseInfo[i][hValue] = cache_get_field_content_int(h, "Value");
  17. HouseInfo[i][hHel] = cache_get_field_content_int(h, "Hel");
  18. HouseInfo[i][hArm] = cache_get_field_content_int(h, "Arm");
  19. HouseInfo[i][hInterior] = cache_get_field_content_int(h, "Interior");
  20. HouseInfo[i][hLock] = cache_get_field_content_int(h, "Lockk");
  21. HouseInfo[i][hOwned] = cache_get_field_content_int(h, "Owned");
  22. HouseInfo[i][hRent] = cache_get_field_content_int(h, "Rent");
  23. HouseInfo[i][hRentabil] = cache_get_field_content_int(h, "Rentabil");
  24. HouseInfo[i][hTakings] = cache_get_field_content_int(h, "Takings");
  25. HouseInfo[i][hLevel] = cache_get_field_content_int(h, "Level");
  26. HouseInfo[i][hVirtual] = cache_get_field_content_int(h, "Virtual");
  27. HouseInfo[i][hRadio] = cache_get_field_content_int(h, "Radio");
  28.  
  29. }
  30. for(new i = 1; i <= housess; i++)
  31. {
  32. UpdateLabel(1,HouseInfo[i][hID]);
  33. }
  34. printf("Houses: %d", housess);
  35. return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement