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

Wysłany: 2017-03-18, 15:26


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

Witam zpj nie dziala a posiadam module podaje blad

ERRORdutyadmin/s_cmd.lua:509callfailed to call 'ogrpg-db:pobierzWyniki' [string "?"]


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 16:01


R3fr3Sh







Wiek: 27
Na forum: 4800 dni
Posty: 70

Piwa: 60

Respekt: 150
Respekt: 150Respekt: 150

A czy masz odpalony zas?b ogrpg-db?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 16:17


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"R3fr3Sh" napisał/a:

A czy masz odpalony zas?b ogrpg-db?

Tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 16:19


Mysterek

Swieżak w LUA






Wiek: 28
Na forum: 3497 dni
Posty: 59
Nick w MP: InjectLine

Piwa: 867

Respekt: 35,3

Ostrzeżeń: 100%
Jaka paczka?

Podpis
<SKYPE> facebook:grin1337
<TS3> ONLY PRIV
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 16:33


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"Mysterek" napisał/a:

Jaka paczka?

IYW

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 18:38


Dexnes_

Tiger






Wiek: 26
Na forum: 4401 dni
Posty: 620
Nick w MP: Dexnes

Piwa: 1394

Respekt: 390
Respekt: 390Respekt: 390Respekt: 390Respekt: 390

Poka? jak wygl?da kod ze skryptu dutyadmin

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 18:45


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

ddCommandHandler("zpj", function(plr,cmd,cel,time,rodzaj,...)
    if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1then
        local reason=table.concat({...}, " ")
        if not cel or not tonumber(time) or not rodzaj or not reason then
            outputChatBox("* U?ycie: /zpj <nick/ID> <czas> <jednostka: m/h/d/w> <pow?d>"plr)
            return
        end
        local target=exports["ogrpg-core"]:findPlayer(plr,cel)
        if not target then
            outputChatBox("* Nie znaleziono podanego gracza."plr25500)
            return
        end
        local query=string.format("SELECT * FROM ogrpg_punish WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","prawko"getPlayerSerial(target))
        local result=exports["ogrpg-db"]:pobierzWyniki(query)
        if (resultthen
            return outputChatBox(" Gracz Posiada zawieszone prawo jazdy do "..result["time"]..", za: "..result["reason"], plr25500)
        else
            exports["ogrpg-db"]:dbSet("DELETE FROM ogrpg_punish WHERE type=? AND active=1 AND serial=?""prawko"getPlayerSerial(plr))
        end
        if isPedInVehicle(targetthen
            removePedFromVehicle(target)
        end
        if tonumber(time) <= 0 then return end
        reason reason.." |od "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."|"
        if rodzaj == "m" then
        exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? minute,?)"getPlayerSerial(target),reasontime"prawko")
        elseif rodzaj == "h" then
        exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? hour,?)"getPlayerSerial(target),reasontime"prawko")
        elseif rodzaj == "d" then
        exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? day,?)"getPlayerSerial(target),reasontime"prawko")
        elseif rodzaj == "w" then
        exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? week,?)"getPlayerSerial(target),reasontime"prawko")
        end
        triggerClientEvent(root"admin:rendering"root"* "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."("..getElementData(target,"id")..") otrzyma?(a) zakaz prowadzenia pojazd?w kat(ABC) "..reason.."("..time .. rodzaj ..")")
        --local query string.format("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES ('%s','%s',%s,'%s')"getPlayerSerial(target), reasonresult"prawko")
        --exports["ogrpg-db"]:dbSet(query)
        --outputChatBox("* Dodanych rekord"plr)


Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Tagi: zpj :: nie :: dziala :: mam :: module
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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