Advertisement
Guest User

Houe

a guest
Nov 20th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. stock LoadHouses()
  2. {
  3. new QueryString[128];
  4. mysql_query( "SELECT id, HouseName, HouseOwner, HouseEntX, HouseEntY, HouseEntZ, HouseIntX, HouseIntY, HouseIntZ, HouseInt, HouseWS1, HouseWA1, HouseWS2, HouseWA2, HouseWS3, HouseWA3, HouseMoney, HouseCS, HousePrice, HouseLock FROM houses");
  5. mysql_store_result();
  6. new x;
  7. while(mysql_retrieve_row())
  8. {
  9. mysql_get_field("id", QueryString);
  10. x = strval(QueryString);
  11.  
  12. mysql_get_field("HouseName", HouseName[x]);
  13.  
  14. mysql_get_field("HouseOwner", HouseOwner[x]);
  15.  
  16. mysql_get_field( "HouseEntX", QueryString);
  17. HouseEntX[x] = floatstr( QueryString);
  18.  
  19. mysql_get_field( "HouseEntY", QueryString);
  20. HouseEntY[x] = floatstr( QueryString);
  21.  
  22. mysql_get_field( "HouseEntZ", QueryString);
  23. HouseEntZ[x] = floatstr( QueryString);
  24.  
  25. mysql_get_field( "HouseIntX", QueryString);
  26. HouseIntX[x] = floatstr( QueryString);
  27.  
  28. mysql_get_field( "HouseIntY", QueryString);
  29. HouseIntY[x] = floatstr( QueryString);
  30.  
  31. mysql_get_field( "HouseIntZ", QueryString);
  32. HouseIntZ[x] = floatstr( QueryString);
  33.  
  34. mysql_get_field( "HouseInt", QueryString);
  35. HouseInt[x] = strval( QueryString);
  36.  
  37. mysql_get_field( "HouseWS1", QueryString);
  38. HouseWS1[x] = strval( QueryString);
  39.  
  40. mysql_get_field( "HouseWA1", QueryString);
  41. HouseWA1[x] = strval( QueryString);
  42.  
  43. mysql_get_field( "HouseWS2", QueryString);
  44. HouseWS2[x] = strval( QueryString);
  45.  
  46. mysql_get_field( "HouseWA2", QueryString);
  47. HouseWA2[x] = strval( QueryString);
  48.  
  49. mysql_get_field( "HouseWS3", QueryString);
  50. HouseWS3[x] = strval( QueryString);
  51.  
  52. mysql_get_field( "HouseWA3", QueryString);
  53. HouseWA3[x] = strval( QueryString);
  54.  
  55. mysql_get_field( "HouseMoney", QueryString);
  56. HouseMoney[x] = strval( QueryString);
  57.  
  58. mysql_get_field( "HouseCS", QueryString);
  59. HouseCS[x] = strval( QueryString) ;
  60.  
  61. mysql_get_field( "HousePrice", QueryString);
  62. HousePrice[x] = strval( QueryString);
  63.  
  64. mysql_get_field( "HouseLock", QueryString);
  65. HouseLock[x] = strval( QueryString);
  66.  
  67. HousePickup[x] = CreateDynamicPickup(1273, 23, HouseEntX[x], HouseEntY[x], HouseEntZ[x], 0, -1, -1, 100.0);
  68. CreateDynamic3DTextLabel(HouseName[x], COLOUR_LIGHTBLUE, HouseEntX[x],HouseEntY[x], HouseEntZ[x], 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 50.0);
  69. }
  70. mysql_free_result();
  71. return 1;
  72. }
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement