Advertisement
Guest User

Ник

a guest
Feb 6th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. stock SaveSBizz(houseid)
  2. {
  3. new update[600],stringer[64];
  4. update = "UPDATE `sbizz` SET ";
  5. acc_int_strcat(update, sizeof(update), "sOwned", SBizzInfo[houseid][sOwned]);
  6. acc_str_strcat(update, sizeof(update), "sMessage", SBizzInfo[houseid][sMessage]);
  7. acc_int_strcat(update, sizeof(update), "sBuyPrice", SBizzInfo[houseid][sBuyPrice]);
  8. acc_int_strcat(update, sizeof(update), "sLocked", SBizzInfo[houseid][sLocked]);
  9. acc_int_strcat(update, sizeof(update), "sPrice", SBizzInfo[houseid][sPrice]);
  10. acc_int_strcat(update, sizeof(update), "sBenz", SBizzInfo[houseid][sBenz]);
  11. acc_int_strcat(update, sizeof(update), "sPriceBenz", SBizzInfo[houseid][sPriceBenz]);
  12. acc_int_strcat(update, sizeof(update), "sTill", SBizzInfo[houseid][sTill]);
  13. strdel(update, strlen(update)-1, strlen(update));
  14. format(stringer,sizeof(stringer)," WHERE `sID` = '%d'",houseid);
  15. strcat(update, stringer);
  16. mysql_function_query(connects, update, false, "", "");
  17. printf("Çàïðàâêà íîìåð %d áûëà óñïåøíî ñîõðàíåíà.",houseid);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement