Jump to content

Nie zapisuje się tuning


Recommended Posts

Witam. nie zapisuje się tuning mechaniczny jak i wizualny

błąd:
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.kod (pystories-vehicles) linijka 476:

 

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.kod (RPG-Przecho) linijka 61:

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

 

mógłby mi ktoś wytłumaczyć co dodać lub zmienić?

 

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...