Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: tuningy
1. Zapis tuningy sqlite
Witajcie mam ju? tyle kodu i nie wiem jak dalej pomo?e kto? za pomoc oczywi?cie browarek wiem tyle ?e funkcja getVehicleUpgradeOnSlot pr?bowa?em paru sposob?w ale nic nie dzia?a?o


local tuning 
dbConnect "sqlite""zapistune.db" )

addEventHandler "onResourceStart"resourceRoot, function ()
    if 
tuning then
        dbExec 
tuning"CREATE TABLE IF NOT EXISTS Tuning()" )
        
local q dbQuery tuning"SELECT * tuning" )
        
local result dbPoll q, -)
        if 
result then
            
for i,v in pairs result ) do
                    
end
                end
            end
        end
)


function 
zapis plr )
    
dbQuery tuning"DELETE FROM Tuning" )
    for 
i,v in ipairs getElementsByType "vehicle" ) ) do
        
dbQuery tuning"INSERT INTO Tuning () VALUES ()")
    
end
end
end