[14:58:22] CMySQLHandler::Query(INSERT INTO `vehicles` (`Model`,`Owned`,Owner`,`ROwner`,`Color1`,`Color2`,`Number`,`TicketText`,`Faction`,`Price`,`Fuel`,`MaxFuel`)VALUES (480, 1, 'Sanek_Newerson', 'None', 1, 1, 'None', 'None', 0, 131000, 100.00,100)) - An error has occured. (Error ID: 1064, 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 '`,`ROwner`,`Color1`,`Color2`,`Number`,`TicketText`,`Faction`,`Price`,`Fuel`,`Max' at line 1)
[14:58:22] >> mysql_insert_id( Connection handle: 1 )
bool: AddVehicle(veh)
{
format(sql, sizeof(sql), "INSERT INTO `vehicles` (`Model`,\
`Owned`,Owner`,`ROwner`,`Color1`,`Color2`,`Number`,`TicketText`,`Faction`,`Price`,`Fuel`,`MaxFuel`)\
VALUES (%d, %d, '%s', '%s', %d, %d, '%s', '%s', %d, %d, %.2f,100)",
VehicleInfo[veh][Model],
VehicleInfo[veh][Owned],
VehicleInfo[veh][Owner],
VehicleInfo[veh][ROwner],
VehicleInfo[veh][vColor][0],
VehicleInfo[veh][vColor][1],
VehicleInfo[veh][Number],
VehicleInfo[veh][TicketText],
VehicleInfo[veh][Faction],
VehicleInfo[veh][Price],
VehicleInfo[veh][Fuel]);
mysql_query(sql);
VehicleInfo[veh][ID] = mysql_insert_id();
return true;
}
`Owned`,Owner`,`ROwner`,
`Owned`,`Owner`,`ROwner`,
pawn Код:
pawn Код:
|