Jump to content

[HELP] Tuning


SkubiGo

Recommended Posts

hello, I have a problem saving visual and mechanical tuning

Error:

1.ERROR: [Podstawa]/pystories-vehicles/s_vehbuy.Lua:476: bad argument #41 to 'format' (string expected, got boolean)

2.ERROR: [Podstawa]/RPG-Przecho/s_parking.Lua:61: call: failed to call 'pystories-vehicles:onSaveVehicle' [string "?"]

1. code (pystories-vehicles):

local query = exports["pystories-db"]:dbSet(string.format("UPDATE pystories_vehicles SET model='%d', pos='%.2f,%.2f,%.2f,%.2f,%.2f,%.2f', rent='%d',text='%s', health='%d', fuel='%d', mileage='%d', frozen='%d', driver='%s', color='%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d', panelstates='%s', paintjob='%d', tuning='%s', headlights='%d,%d,%d', ownedPlayer='%d', silnik='%s', cylindry='%s', naped='%s', trakcja='%s', hamulce='%s', zamow_komis='%s', skret='%s', bak='%s', blokada='%s', gazzamont='%s', gaz='%s' WHERE id=%d", 
model, x,y,z, rx,ry,rz, "0",desc, health, fuel, mileage, frozen, driver, c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12, panelstates, paintjob, upgrades, h1,h2,h3, player, silnik, cylindry, naped, trakcja, hamulce, zamow_komis, skret, bak, tostring(blokada), gazzamont, gaz, id))

 

2.code (RPG-Przecho):

setElementData(veh, "vehicle:desc", " ")

 

could someone explain to me what to change or add

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...