Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. public LoadProperty()
  2. {
  3. new idx=0,string[10];
  4. while (idx < sizeof(HouseInfo))
  5. {
  6. format(string, sizeof(string),"%d",idx);
  7. HouseInfo[idx][hEntrancex] = mysql_GetFloatByString("house","hEntrancex","id",string);
  8. HouseInfo[idx][hEntrancey] = mysql_GetFloatByString("house","hEntrancey","id",string);
  9. HouseInfo[idx][hEntrancez] = mysql_GetFloatByString("house","hEntrancez","id",string);
  10. HouseInfo[idx][hExitx] = mysql_GetFloatByString("house","hExitx","id",string);
  11. HouseInfo[idx][hExity] = mysql_GetFloatByString("house","hExity","id",string);
  12. HouseInfo[idx][hExitz] = mysql_GetFloatByString("house","hExitz","id",string);
  13. strmid(HouseInfo[idx][hOwner], mysql_GetStringByString("house","hOwner","id",string), 0, strlen(mysql_GetStringByString("house","hOwner","id",string)), 255);
  14. strmid(HouseInfo[idx][hDiscription], mysql_GetStringByString("house","hDiscription","id",string), 0, strlen(mysql_GetStringByString("house","hDiscription","id",string)), 255);
  15. HouseInfo[idx][hValue] = mysql_GetIntByString("house","hValue","id",string);
  16. HouseInfo[idx][hHel] = mysql_GetIntByString("house","hHel","id",string);
  17. HouseInfo[idx][hArm] = mysql_GetIntByString("house","hArm","id",string);
  18. HouseInfo[idx][hInt] = mysql_GetIntByString("house","hInt","id",string);
  19. HouseInfo[idx][hLock] = mysql_GetIntByString("house","hLock","id",string);
  20. HouseInfo[idx][hOwned] = mysql_GetIntByString("house","hOwned","id",string);
  21. HouseInfo[idx][hRooms] = mysql_GetIntByString("house","hRooms","id",string);
  22. HouseInfo[idx][hRent] = mysql_GetIntByString("house","hRent","id",string);
  23. HouseInfo[idx][hRentabil] = mysql_GetIntByString("house","hRentabil","id",string);
  24. HouseInfo[idx][hTakings] = mysql_GetIntByString("house","hTakings","id",string);
  25. HouseInfo[idx][hLevel] = mysql_GetIntByString("house","hLevel","id",string);
  26. HouseInfo[idx][hVWorld] = mysql_GetIntByString("house","hVWorld","id",string);
  27. printf("HouseInfo:%d Owner:%s hTakings %d hVec %d VWorld %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec], HouseInfo[idx][hVWorld],
  28. HouseInfo[idx][hEntrancex],HouseInfo[idx][hEntrancey],HouseInfo[idx][hEntrancez]);
  29. idx++;
  30. }
  31. return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement