Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public LoadProperty()
- {
- new idx=0,string[10];
- while (idx < sizeof(HouseInfo))
- {
- format(string, sizeof(string),"%d",idx);
- HouseInfo[idx][hEntrancex] = mysql_GetFloatByString("house","hEntrancex","id",string);
- HouseInfo[idx][hEntrancey] = mysql_GetFloatByString("house","hEntrancey","id",string);
- HouseInfo[idx][hEntrancez] = mysql_GetFloatByString("house","hEntrancez","id",string);
- HouseInfo[idx][hExitx] = mysql_GetFloatByString("house","hExitx","id",string);
- HouseInfo[idx][hExity] = mysql_GetFloatByString("house","hExity","id",string);
- HouseInfo[idx][hExitz] = mysql_GetFloatByString("house","hExitz","id",string);
- strmid(HouseInfo[idx][hOwner], mysql_GetStringByString("house","hOwner","id",string), 0, strlen(mysql_GetStringByString("house","hOwner","id",string)), 255);
- strmid(HouseInfo[idx][hDiscription], mysql_GetStringByString("house","hDiscription","id",string), 0, strlen(mysql_GetStringByString("house","hDiscription","id",string)), 255);
- HouseInfo[idx][hValue] = mysql_GetIntByString("house","hValue","id",string);
- HouseInfo[idx][hHel] = mysql_GetIntByString("house","hHel","id",string);
- HouseInfo[idx][hArm] = mysql_GetIntByString("house","hArm","id",string);
- HouseInfo[idx][hInt] = mysql_GetIntByString("house","hInt","id",string);
- HouseInfo[idx][hLock] = mysql_GetIntByString("house","hLock","id",string);
- HouseInfo[idx][hOwned] = mysql_GetIntByString("house","hOwned","id",string);
- HouseInfo[idx][hRooms] = mysql_GetIntByString("house","hRooms","id",string);
- HouseInfo[idx][hRent] = mysql_GetIntByString("house","hRent","id",string);
- HouseInfo[idx][hRentabil] = mysql_GetIntByString("house","hRentabil","id",string);
- HouseInfo[idx][hTakings] = mysql_GetIntByString("house","hTakings","id",string);
- HouseInfo[idx][hLevel] = mysql_GetIntByString("house","hLevel","id",string);
- HouseInfo[idx][hVWorld] = mysql_GetIntByString("house","hVWorld","id",string);
- printf("HouseInfo:%d Owner:%s hTakings %d hVec %d VWorld %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec], HouseInfo[idx][hVWorld],
- HouseInfo[idx][hEntrancex],HouseInfo[idx][hEntrancey],HouseInfo[idx][hEntrancez]);
- idx++;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement