jeudi 22 janvier 2015

UpdatePos

It does not load the database new position of the car !

My problem is the " WHERE ID " I am car database with ID : 1, and if I change " WHERE ID =% s " with " WHERE ID = 1 "then it works perfectly







HTML Code:



mysql_format(handle, query, sizeof(query), "UPDATE `vehicles` SET `PositionX` = '%f', `PositionY` = '%f', `PositionZ` = '%f', `Angle` = '%f' WHERE ID = '%i'", VehiclesInfo[carid][vPositionX], VehiclesInfo[carid][vPositionY], VehiclesInfo[carid][vPositionZ], VehiclesInfo[carid][vAngle], VehiclesInfo[carid][vID]);

mysql_query(handle, query);







Aucun commentaire:

Enregistrer un commentaire