Quote:
Originally Posted by Antonio [G-RP]
When I do /vehpos to save the vehicles position, I get this.
pawn Код:
format(string, sizeof(string), "UPDATE `vehicles` SET `VEHid` = %d, `model` = %d, `park_x` = %f, `park_y` = %f, `park_z` = %f, `park_o` = %f WHERE \ `VEHid` = %d", VehicleInfo[vehicleid][vVEHid], VehicleInfo[vehicleid][vModel], \ VehicleInfo[vehicleid][vPark_x], VehicleInfo[vehicleid][vPark_y], VehicleInfo[vehicleid][vPark_z], VehicleInfo[vehicleid][vPark_o], VehicleInfo[vehicleid][vVEHid]); mysql_query(string);
|
Dont add ' ' to anything except strings, '%s'. Not sure if thats your problem, just fixing up your code a tad bit