14.01.2011, 00:46
(
Последний раз редактировалось Antonio [G-RP]; 14.01.2011 в 05:19.
)
Fixed.
format(string, sizeof(string), "UPDATE `vehicles` SET `model` = %d, `park_x` = %f, `park_y` = %f, `park_z` = %f, `park_o` = %f, ", VehicleInfo[vehicleid][vModel],
VehicleInfo[vehicleid][vPark_x], VehicleInfo[vehicleid][vPark_y], VehicleInfo[vehicleid][vPark_z], VehicleInfo[vehicleid][vPark_o], VehicleInfo[vehicleid][vSQLid]);
format(string, sizeof(string), "`color1` = %d, `color2` = %d, `respawndelay` = %d, `ownable` = %f, `ownerid` = %d, `factionid` = %d, ",VehicleInfo[vehicleid][vCol1], VehicleInfo[vehicleid][vCol2], VehicleInfo[vehicleid][vRespawnDelay],
VehicleInfo[vehicleid][vOwnable], VehicleInfo[vehicleid][vOwnerID], VehicleInfo[vehicleid][vFactionID], VehicleInfo[vehicleid][vSQLid]);
format(string, sizeof(string), "`jobid` = %d, `engine` = %d, `fuel` = %d, `locked` = %d, `trunkopen` = %d, `hoodopen` = %d, `trunkinv1` = %d, ",
string,VehicleInfo[vehicleid][vJobID], VehicleInfo[vehicleid][vEngine], VehicleInfo[vehicleid][vFuel], VehicleInfo[vehicleid][vLocked], VehicleInfo[vehicleid][vTrunkOpen], VehicleInfo[vehicleid][vHoodOpen], VehicleInfo[vehicleid][vTrunkInv1]);
format(string, sizeof(string), "`trunkinv2` = %d, `trunkinv3` = %d, `trunkinv4` = %d, `trunkinv5` = %d, `trunkqnt1` = %d, `trunkqnt2` = %d, `trunkqnt3` = %d, ", VehicleInfo[vehicleid][vTrunkInv2], VehicleInfo[vehicleid][vTrunkInv3],
VehicleInfo[vehicleid][vTrunkInv4], VehicleInfo[vehicleid][vTrunkInv5], VehicleInfo[vehicleid][vTrunkQnt1], VehicleInfo[vehicleid][vTrunkQnt2], VehicleInfo[vehicleid][vTrunkQnt3]);
format(string, sizeof(string), "`trunkqnt4` = %d, `trunkqnt5` = %d, `price` = %d, `plate` = %s WHERE `SQLid` = %d", VehicleInfo[vehicleid][vTrunkQnt4], VehicleInfo[vehicleid][vTrunkQnt5], VehicleInfo[vehicleid][vPrice],
VehicleInfo[vehicleid][vPlate], VehicleInfo[vehicleid][vSQLid]);
format(string, sizeof(string), "UPDATE `vehicles` SET `model` = %d, `park_x` = %f, `park_y` = %f, `park_z` = %f, `park_o` = %f, ", VehicleInfo[vehicleid][vModel],
VehicleInfo[vehicleid][vPark_x], VehicleInfo[vehicleid][vPark_y], VehicleInfo[vehicleid][vPark_z], VehicleInfo[vehicleid][vPark_o], VehicleInfo[vehicleid][vSQLid]);
format(string, sizeof(string), "%s`color1` = %d, `color2` = %d, `respawndelay` = %d, `ownable` = %f, `ownerid` = %d, `factionid` = %d, ",string,VehicleInfo[vehicleid][vCol1], VehicleInfo[vehicleid][vCol2], VehicleInfo[vehicleid][vRespawnDelay],
VehicleInfo[vehicleid][vOwnable], VehicleInfo[vehicleid][vOwnerID], VehicleInfo[vehicleid][vFactionID], VehicleInfo[vehicleid][vSQLid]);
format(string, sizeof(string), "%s`jobid` = %d, `engine` = %d, `fuel` = %d, `locked` = %d, `trunkopen` = %d, `hoodopen` = %d, `trunkinv1` = %d, ",
string,VehicleInfo[vehicleid][vJobID], VehicleInfo[vehicleid][vEngine], VehicleInfo[vehicleid][vFuel], VehicleInfo[vehicleid][vLocked], VehicleInfo[vehicleid][vTrunkOpen], VehicleInfo[vehicleid][vHoodOpen], VehicleInfo[vehicleid][vTrunkInv1]);
format(string, sizeof(string), "%s`trunkinv2` = %d, `trunkinv3` = %d, `trunkinv4` = %d, `trunkinv5` = %d, `trunkqnt1` = %d, `trunkqnt2` = %d, `trunkqnt3` = %d, ",string, VehicleInfo[vehicleid][vTrunkInv2], VehicleInfo[vehicleid][vTrunkInv3],
VehicleInfo[vehicleid][vTrunkInv4], VehicleInfo[vehicleid][vTrunkInv5], VehicleInfo[vehicleid][vTrunkQnt1], VehicleInfo[vehicleid][vTrunkQnt2], VehicleInfo[vehicleid][vTrunkQnt3]);
format(string, sizeof(string), "%s`trunkqnt4` = %d, `trunkqnt5` = %d, `price` = %d, `plate` = %s WHERE `SQLid` = %d", string, VehicleInfo[vehicleid][vTrunkQnt4], VehicleInfo[vehicleid][vTrunkQnt5], VehicleInfo[vehicleid][vPrice],
VehicleInfo[vehicleid][vPlate], VehicleInfo[vehicleid][vSQLid]);
`plate` = %s WHERE `SQLid` = %d"
`plate` = `%s` WHERE `SQLid` = %d"
try this
http://notesbin.com/1336996749 i changed Код:
`plate` = %s WHERE `SQLid` = %d" Код:
`plate` = `%s` WHERE `SQLid` = %d" |