Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-03-12, 20:40


Czesio.







Wiek: 33
Na forum: 3445 dni
Posty: 34



Respekt: 45,3

Witam mam problem jak to naprawic ? :P

[2018-03-12 20ERROR: [prace]/SF-StreetView/bus.lua:66attempt to index global 'veh_obj' (a nil value)
[2018-03-12 20INFOZaladowano zmienionych domow0
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:436exportsCall to non-running server resource (ogrpg-prace-settings) [string "?"]
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/onl-core/vehicles.lua:81callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:457callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/onl-core/vehicles.lua:94callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20WARNING: [ogrpg]/ogrpg-db/s_db.lua:27dbPoll failedUnknown column 'turbo' in 'where clause'
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:37attempt to index local 'result' (a boolean value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:505callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20INFOZaladowano zmienionych domow0
[2018-03-12 20NICKTheKoxer is now known as #FF0000TheKoxer
[2018-03-12 20WARNING: [ogrpg]/onl-duty/s_utility.lua:84Bad argument 'getElementData' [Expected element at argument 1got nil]
[2018-03-12 20INFOZaladowano zmienionych domow0
[2018-03-12 20ERROR: [prace]/SF-StreetView/bus.lua:66attempt to index global 'veh_obj' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/onl-core/vehicles.lua:94callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20WARNING: [ogrpg]/ogrpg-db/s_db.lua:27dbPoll failedUnknown column 'turbo' in 'where clause'
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:37attempt to index local 'result' (a boolean value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:505callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20INFOZaladowano zmienionych domow0
[2018-03-12 20INFOZaladowano zmienionych domow0
[2018-03-12 20ERROR: [prace]/SF-StreetView/bus.lua:66attempt to index global 'veh_obj' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/onl-core/vehicles.lua:94callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]
[2018-03-12 20WARNING: [ogrpg]/ogrpg-db/s_db.lua:27dbPoll failedUnknown column 'turbo' in 'where clause'
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:37attempt to index local 'result' (a boolean value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)
[2018-03-12 20ERROR: [ogrpg]/ogrpg-vehicles/s_vehbuy.lua:505callfailed to call 'ogrpg-db:pobierzWyniki' [string 


[ Dodano: 2018-03-12, 20:41 ]
chodzi mi tyllko o mysql_query
[2018-03-12 20ERROR: [ogrpg]/ogrpg-db/s_db.lua:96attempt to call global 'mysql_query' (a nil value)


Ostatnio zmieniony przez Dexnes_ 2018-03-27, 22:27, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-13, 20:55


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3210 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5

wgraj modu?y MySQL, gdzie? na gtao by? poradnik nawet :v

Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-15, 16:34


Czesio.







Wiek: 33
Na forum: 3445 dni
Posty: 34



Respekt: 45,3

"TeeNekk" napisał/a:

wgraj modu?y MySQL, gdzie? na gtao by? poradnik nawet :v


Spr?buj?. lecz mam te? problem z tym

[2018-03-14 12:53] ERROR: Client (#a31303SaYu) triggered serverside event montazElementu, but event is not added serverside bardziej chodzi mi o to, ?e Clientside i Serwerside :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-27, 21:51


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

"Czesio." napisał/a:

"TeeNekk" napisał/a:

wgraj modu?y MySQL, gdzie? na gtao by? poradnik nawet :v


Spr?buj?. lecz mam te? problem z tym

[2018-03-14 12] ERROR: Client (#a31303SaYu) triggered serverside event montazElementu, but event is not added serverside bardziej chodzi mi o to, ?e Clientside i Serwerside :P


Dodaj to,

niewspiera_tuningu = {
[503] = true,
}
addEvent("montazElementu"true)
addEventHandler("montazElementu"root, function(vehtypczesckosztnazwaCzesci)
    if tostring(typ) == "naprawa" then
        zgoda=true
        zgoda2=false
        if czesc == "all" then
            setElementHealth(veh10000)
            fixVehicle(veh)
            setElementHealth(veh10000)
            setVehicleDoorState(veh00)
            setVehicleDoorState(veh10)
            setVehicleDoorState(veh20)
            setVehicleDoorState(veh30)
            setVehicleDoorState(veh40)
            setVehicleDoorState(veh50)
            setVehiclePanelState(veh40)
            setVehiclePanelState(veh50)
            setVehiclePanelState(veh60)
            setVehicleLightState(veh00)
            setVehicleLightState(veh10)
            setVehicleLightState(veh20)
            setVehicleLightState(veh30)
        else
            if czesc == 1 then setElementHealth(veh10000end
            if czesc == 2 then setVehicleDoorState(veh00end
            if czesc == 3 then setVehicleDoorState(veh10end
            if czesc == 4 then setVehicleDoorState(veh20end
            if czesc == 5 then setVehicleDoorState(veh30end
            if czesc == 6 then setVehicleDoorState(veh40end
            if czesc == 7 then setVehicleDoorState(veh50end
            if czesc == 8 then setVehiclePanelState(veh40end
            if czesc == 9 then setVehiclePanelState(veh50end
            if czesc == 10 then setVehiclePanelState(veh60end
            if czesc == 11 then setVehicleLightState(veh00end
            if czesc == 12 then setVehicleLightState(veh10end
            if czesc == 13 then setVehicleLightState(veh20end
            if czesc == 14 then setVehicleLightState(veh30end
        end
    end
    local id=getElementData(veh,"vehicle:id")
    if not id then return end
    if tostring(typ) == "swiatla" then
        zgoda=true
        zgoda2=false
        takePlayerMoney(client,koszt)
        setVehicleHeadLightColor(vehczesc[1], czesc[2], czesc[3])
        query=string.format("UPDATE ogrpg_vehicles SET headlights='%d,%d,%d' WHERE id=?"czesc[1], czesc[2], czesc[3], id)
        exports["ogrpg-db"]:dbSet(query) -- set rekords
    end
    if tostring(typ) == "kolor" then
        zgoda=false
        zgoda2=false
        local c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12=getVehicleColor(vehtrue)
        setVehicleColor(vehczesc[1], czesc[2], czesc[3],c4,c5,c6,c7,c8,c9,c10,c11,c12)
        query=string.format("UPDATE ogrpg_vehicles SET color='%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d' WHERE id=?"czesc[1], czesc[2], czesc[3],c4,c5,c6,c7,c8,c9,c10,c11,c12id)
        exports["ogrpg-db"]:dbSet(query) -- set rekords
    end
    if tostring(typ) == "kolor2" then
        zgoda=false
        zgoda2=false
        local c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12=getVehicleColor(vehtrue)
        setVehicleColor(vehc1,c2,c3,czesc[1], czesc[2], czesc[3],c7,c8,c9,c10,c11,c12)
        query=string.format("UPDATE ogrpg_vehicles SET color='%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d' WHERE id=?"c1,c2,c3,czesc[1], czesc[2], czesc[3],c7,c8,c9,c10,c11,c12id)
        exports["ogrpg-db"]:dbSet(query) -- set rekords
    end
    if tostring(typ) == "tuning" then
        if niewspiera_tuningu[getElementModel(veh)] then outputChatBox("* Tego pojazdu nie mozesz tuningowa?!",client) return end
        if getPlayerMoney(client)<tonumber(kosztthen
            local brakhajsu string.format("*Nie sta? ci? na %s brakuj? ci %d PLN"nazwaCzescitonumber(koszt)-getPlayerMoney(client))
            outputChatBox(brakhajsuclient)
        return end
        local driver=getVehicleController(veh)
        if driver then
            removeVehicleUpgrade(veh,czesc)
            outputChatBox("* Zamontowano cz??c:"..nazwaCzesci.."("..czesc.."), koszt: "..koszt.." PLN'?w"driver)
        else
            outputChatBox("* Brak kierowcy w pojedzie"client) return
        end
        takePlayerMoney(clientkoszt)
        zgoda=true
        zgoda2=false
        addVehicleUpgrade(vehczesc)
        upgrades=getVehicleUpgrades(veh)
        if not upgrades then upgrades={} end
        upgrades=table.concat(upgrades",")
        query=string.format("UPDATE ogrpg_vehicles SET tuning='%s' WHERE id=?"upgradesid)
        exports["ogrpg-db"]:dbSet(query) -- set rekords
    end
    if tostring(typ) == "demtuning" then
        driver=getVehicleController(veh)
        if not driver then outputChatBox("* Brak kierowcy w pojedzie"client) return end
        if getElementData(veh,"vehicle:ownedPlayer") ~= getElementData(driver,"player:uid"then outputChatBox("* Kierowca nie jest w?ascicielem!",client) return end
        if removeVehicleUpgrade(veh,czesc) == true then
            if driver then
                removeVehicleUpgrade(veh,czesc)
                givePlayerMoney(driver,koszt)
                outputChatBox("* Zdemontowano cz??c: "..nazwaCzesci.."("..czesc.."), zwrot: "..koszt.." PLN'?w"driver)
            end
            zgoda=false
            zgoda2=true
            upgrades=getVehicleUpgrades(veh)
            if not upgrades then upgrades={} end
            upgrades=table.concat(upgrades",")
            query=string.format("UPDATE ogrpg_vehicles SET tuning='%s' WHERE id=?"upgradesid)
            exports["ogrpg-db"]:dbSet(query) -- set rekords
        end
    end
    if zgoda == true then
        text="WARSZTAT Zamontowano "..typ..", dla pojazdu id "..id..", koszt "..koszt.." PLN'?w"
        triggerClientEvent("onDebugMessage"resourceRoottext,5"INNE")
        triggerEvent("admin:logs"roottext)
    end
    if zgoda2 == true then
        text="WARSZTAT Zdemontowano "..czesc..", dla pojazdu id "..id..", koszt "..koszt.." PLN'?w"
        triggerClientEvent("onDebugMessage"resourceRoottext,5"INNE")
        triggerEvent("admin:logs"roottext)
    end
end)


Tutaj,

[skrypty_glowne]\ogrpg-tune-settings

Po stronie serwera i nazwij to 's_montarz.lua'
(B??d jest specjalnie zrobiony gdy? taki zosta? utworzony podczas pisania zasob?w przez autora)

Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Tagi: mysql_query :: cmn
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » mysql_query o co cmn :< Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku