23.09.2010, 03:42
Does anyone see anything wrong with this query, I can't figure it out.
In the mysql Log
pawn Код:
new Query[128];
format(Query, sizeof(Query), "INSERT INTO vehicles (Model,ParkX,ParkY,ParkZ,ParkA,Color1,Color2,VehicleOwner,VehicleDescription,Owned,Locked,LockBought,RentPrice,Alarm,VehKey,PaintJob,Insurance,Scratches) VALUES ('%d','%f,'%f','%f','%f','%d','%d','%s','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d')",
VehicleInfo[car][vCarId],
VehicleInfo[car][vModel],
VehicleInfo[car][vX],
VehicleInfo[car][vY],
VehicleInfo[car][vZ],
VehicleInfo[car][vAngle],
VehicleInfo[car][vColorOne],
VehicleInfo[car][vColorTwo],
VehicleInfo[car][vOwner],
VehicleInfo[car][vDescription],
VehicleInfo[car][vOwned],
VehicleInfo[car][vLock],
VehicleInfo[car][vLockBuyed],
VehicleInfo[car][vRentPrice],
VehicleInfo[car][vAlarm],
VehicleInfo[car][vKey],
VehicleInfo[car][vPaintJob],
VehicleInfo[car][vInsurances],
VehicleInfo[car][vScratches]);
mysql_query(Query);
printf("%s",Query);
Код:
[09/22/10 22:44:54] Error (0): Could not execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.