Error in Query?
#2

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
Reply


Messages In This Thread
Error in Query? - by Antonio [G-RP] - 12.01.2011, 23:44
Re: Error in Query? - by Anthonyx3' - 12.01.2011, 23:49
Re: Error in Query? - by Antonio [G-RP] - 12.01.2011, 23:52
Re: Error in Query? - by coole210 - 13.01.2011, 03:24
Re: Error in Query? - by PeteShag - 13.01.2011, 05:23

Forum Jump:


Users browsing this thread: 1 Guest(s)