Rat32 Posted June 21, 2015 Share Posted June 21, 2015 function nadajemypojazd(plr, cmd) pojazd = getPedOccupiedVehicle(plr) vehid = getVehicleID(pojazd) a,b,c = getElementPosition(pojazd) exports.DB2:zapytanie("INSERT INTO bl_test SET marka=vehid,x=a, y=b, z=c") end addCommandHandler("taktak", nadajemypojazd) DS 3: dbPoll failed; Unkown Column 'vehid' in 'field list' Columns are created, mysql database working. What's the problem? Link to comment
Anubhav Posted June 21, 2015 Share Posted June 21, 2015 function nadajemypojazd(plr, cmd) pojazd = getPedOccupiedVehicle(plr) vehid = getVehicleID(pojazd) a,b,c = getElementPosition(pojazd) exports.DB2:zapytanie("INSERT INTO bl_test SET marka=?,x=?, y=?, z=?", vehid, a, b, c ) end addCommandHandler("taktak", nadajemypojazd) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now