format(Query, sizeof(Query), "UPDATE `vehicles`\
(Owner, X, Y, Z, Angle,Spa,Spa1,Fuel,Uzr,Apz,Tune0,Tune1,Tune2,Tune3,Tune4,Tune5,Tune6,Tune7,Tune8,Tune9,Tune10,Tune11,Tune12,Tune13) \
VALUES(%s, %f, %f, %f, %f, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)",
vInfo[vehicleid][Owner],
PositionX,
PositionY,
PositionZ,
AngleZ,
Color1,
Color2,
vInfo[vehicleid][Fuel],
vInfo[vehicleid][Uzr],
vInfo[vehicleid][Apz],
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SPOILER),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_HOOD),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_ROOF),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_LAMPS),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_NITRO),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_EXHAUST),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_WHEELS),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_STEREO),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_HYDRAULICS),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_FRONT_BUMPER),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_REAR_BUMPER),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_VENT_RIGHT),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_VENT_LEFT)
);
I edited my post ant tryed with those setting, but still won't work
|
format(Query, sizeof(Query), "UPDATE `vehicles`
(Owner, X, Y, Z, Angle,Spa,Spa1,Fuel,Uzr,Apz,Tune0,Tune1,Tune2,Tune3,Tune4,Tune5,Tune6,Tune7,Tune8,Tune9,Tune10,Tune11,Tune12,Tune13)
VALUES(%s, %f, %f, %f, %f, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)",
vInfo[vehicleid][Owner],
PositionX,
PositionY,
PositionZ,
AngleZ,
Color1,
Color2,
vInfo[vehicleid][Fuel],
vInfo[vehicleid][Uzr],
vInfo[vehicleid][Apz],
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SPOILER),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_HOOD),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_ROOF),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_LAMPS),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_NITRO),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_EXHAUST),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_WHEELS),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_STEREO),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_HYDRAULICS),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_FRONT_BUMPER),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_REAR_BUMPER),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_VENT_RIGHT),
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_VENT_LEFT)
);