Guest User

Untitled

a guest
Nov 11th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. SaveHouse(id)
  2. {
  3. new query[256];
  4. mysql_format(handle, query, sizeof(query), "UPDATE PlayerHouses SET howner = '%s', hLocked = '%d', hPrice = '%d', hInt = '%d', HentX = '%f',HentY = '%f', HentZ = '%f', HexX='%f',HexY = '%f', HexZ = '%f' WHERE houseid = '%d'",
  5. House[id][howner],House[id][hLocked],House[id][hPrice],House[id][hInt],House[id][HentX],House[id][HentY],House[id][HentZ],House[id][HexX],House[id][HexY],House[id][HexZ],House[id][houseid]);
  6. //mysql_pquery(handle,query,"");
  7. mysql_query(handle, query, false);
  8. printf(query);
  9. if(ServerShuttingDown ==0)
  10. {
  11. updateHouse(id);
  12. }
  13. return 1;
  14. }
  15. upd
Add Comment
Please, Sign In to add comment