Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SaveProperty()
- {
- print("2");
- for(new i; i<C_MAX_HOUSES; ++i){
- format(query, sizeof(query), "UPDATE `houseinfo` SET Type = '%d', Owner = '%s', Price = '%d', Interior = '%d', VW = '%d', DoorStats = '%d', EntranceX = '%f', \
- EntranceY = '%f', EntranceZ = '%f', IntposX = '%f', IntposY = '%f', IntposZ = '%f' WHERE `ID` = %d", gPropertyInfo[i][property_type], gPropertyInfo[i][property_owner],
- gPropertyInfo[i][property_price], gPropertyInfo[i][property_interior], gPropertyInfo[i][property_vw], gPropertyInfo[i][property_door], gPropertyInfo[i][property_entranceX],
- gPropertyInfo[i][property_entranceY], gPropertyInfo[i][property_entranceZ], gPropertyInfo[i][property_intposX], gPropertyInfo[i][property_intposY], gPropertyInfo[i][property_intposZ], i);
- mysql_function_query(MYSQLConnection, query, false, "r@SaveProperty", "d", i);
- }
- return 1;
- }
- public r@SaveProperty(propid){
- printf("prop (%d) salva com sucesso.",propid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment