vInfo[id][ParkX] = X;
vInfo[id][ParkY] = Y;
vInfo[id][ParkZ] = Z;
vInfo[id][ParkA] = Angle;
DestroyVehicle(vehicleid);
format(fquery,sizeof(fquery), "UPDATE `vehicles` SET X = '%f', Y = '%f', Z = '%f', A = '%f' WHERE ID = 2",
DB_Escape(vInfo[id][ParkX]), // HERE
DB_Escape(vInfo[id][ParkY]), // HERE
DB_Escape(vInfo[id][ParkZ]), // HERE
DB_Escape(vInfo[id][ParkA])); //HERE
Try wihout DB_Escape.
By the way, is this a dynamic vehicle system? if so I think that you should replace 2 at "WHERE ID = 2" with the appropriate value. |
Only strings need escaping. Floating point values cannot contain special characters.
|