Siemaneczko, mo?e kto? wie ? i pomo?e przerobi? t? przechowalnie:
PrzechoZforumGtao
pod SystemPojazdowPanaPrezesa
Zmieni?em go tak
[lua]local polaczenie = dbConnect ( "sqlite", "db.db" )
dbExec ( polaczenie, "CREATE TABLE IF NOT EXISTS Zapis ( ID INTEGER, Paliwo INTEGER, Przebieg INTEGER, Tuning VARCHAR, Model INTEGER, Owner VARCHAR )" )
local marker=createMarker(-273.65625, 1177.74316, 18.59375,"cylinder",5,255,0,255,100)--- Marker chowania pojazdu
local odb=createMarker(-265.20197, 1185.64063, 18.74219,"cylinder",3,255,0,0,100)--- Marker odbioru pojazdu
addEventHandler("onMarkerHit",root,function(e)
if source==marker then
if getElementType(e)=="vehicle" then
local id=getElementData(e,"car_id")
if id then
local paliwo=getElementData(e,"pojazd_paliwo") or 0
tabela = {}
for _,v in ipairs ( getVehicleUpgrades ( e ) ) do
table.insert ( tabela, v )
end
local tuning = table.concat ( tabela, "," )
local owner=getElementData(e,"pojazd_przebieg") or 0
local model=getElementModel(e)
dbExec(polaczenie,"INSERT INTO `Zapis` (ID, Paliwo, Przebieg,Tuning,Owner,Model) VALUES (?,?,?,?,?,?)",id,paliwo,przebieg,tuning,owner,model)
destroyElement(e)
end
end
elseif source==odb then
if getElementType(e)=="player" then
local q=dbQuery(polacz... |