BlueX

aaaaaaaaaaaaaaaaaaaaaaaa

Jan 24th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. public SaveProperty()
  2. {
  3. print("2");
  4. for(new i; i<C_MAX_HOUSES; ++i){
  5. format(query, sizeof(query), "UPDATE `houseinfo` SET Type = '%d', Owner = '%s', Price = '%d', Interior = '%d', VW = '%d', DoorStats = '%d', EntranceX = '%f', \
  6. EntranceY = '%f', EntranceZ = '%f', IntposX = '%f', IntposY = '%f', IntposZ = '%f' WHERE `ID` = %d", gPropertyInfo[i][property_type], gPropertyInfo[i][property_owner],
  7. gPropertyInfo[i][property_price], gPropertyInfo[i][property_interior], gPropertyInfo[i][property_vw], gPropertyInfo[i][property_door], gPropertyInfo[i][property_entranceX],
  8. gPropertyInfo[i][property_entranceY], gPropertyInfo[i][property_entranceZ], gPropertyInfo[i][property_intposX], gPropertyInfo[i][property_intposY], gPropertyInfo[i][property_intposZ], i);
  9. mysql_function_query(MYSQLConnection, query, false, "r@SaveProperty", "d", i);
  10. }
  11. return 1;
  12. }
  13.  
  14. public r@SaveProperty(propid){
  15. printf("prop (%d) salva com sucesso.",propid);
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment