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

Wysłany: 2018-12-14, 23:56


kuba43







Wiek: 45
Na forum: 3225 dni
Posty: 166
Nick w MP: definitly

Piwa: 17

Respekt: 30,5

Siema,
mam taki problem:
"hudv1/c.lua:10 call: failed to call: 'ogrpg-db:dbGet' string "?"
Kto napisze prawid?owy kod daje R* :piwo:
Macie kodzik:

czcionka dxCreateFont (":noti/czcionka.ttf"10)
sxsy guiGetScreenSize ()
hudOn false
uid getElementData (localPlayer"player:uid")
RP exports["ogrpg-db"]:dbGet("SELECT reputation FROM ogrpg_users WHERE uid = ?"uid)

addEventHandler"onClientResourceStart"resourceRoot, function()
    for _staryhud in ipairs({"weapon""ammo""health""clock""money""breath""armour""wanted"}) do 
        setPlayerHudComponentVisiblestaryhudfalse)
    end
    
    if not hudobraz and getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        pokazhud()
    end
end)

addEventHandler ("onClientPlayerSpawn"resourceRoot, function()
    if not hudobraz and getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        hud()
    end
end)

addEventHandler ("onClientResourceStop"resourceRoot, function()
    destroyElement resourceRoot )
end)

function hudobraz()
    if getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        hudobraz dxDrawImage(56536225129":hud/penta.png"000tocolor(255255255255), false)
        pieniadze getPlayerMoney(localPlayer)
        pokazp dxDrawText(pieniadze"PLN"60280731116tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
        reputacja dxDrawText(RP"RP"602126731162tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
        spr getPlayerName (localPlayer)
        nick dxDrawText(spr5964072576tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
    end
end


Podpis
„(…) wystarczy, że odpowiesz sobie na jedno zajebiście, ale to zajebiście, ważne pytanie: co lubię w życiu robić. A potem zacznij to robić.”.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-15, 00:03


Mikołajj







Wiek: 22
Na forum: 2885 dni
Posty: 303
Nick w MP: Mikołaj

Piwa: 132

Respekt: 91

Masz skrypt na database od ogrpg i go pod??czy?e??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-15, 00:18


kuba43







Wiek: 45
Na forum: 3225 dni
Posty: 166
Nick w MP: definitly

Piwa: 17

Respekt: 30,5

Gdybym nie mia? tego skryptu to by pisa? inny b??d w db, i po co sobie nabijasz g?upie posty?!

Podpis
„(…) wystarczy, że odpowiesz sobie na jedno zajebiście, ale to zajebiście, ważne pytanie: co lubię w życiu robić. A potem zacznij to robić.”.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-15, 00:30


AsterBonzo

Otwórz ogień






Wiek: 20
Na forum: 2968 dni
Posty: 187
Nick w MP: Hirahi

Piwa: 60

Respekt: 35,8

Spr?buj to



czcionka dxCreateFont (":noti/czcionka.ttf"10)
sxsy guiGetScreenSize ()
hudOn false
uid getElementData (localPlayer"player:uid")
RP exports["ogrpg-db"]:dbGet("SELECT reputation FROM ogrpg_users WHERE uid = ?"uid)

    
    if not hudobraz and getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        pokazhud()
    end
end)

addEventHandler ("onClientPlayerSpawn"resourceRoot, function()
    if not hudobraz and getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        hud()
    end
end)

addEventHandler ("onClientResourceStop"resourceRoot, function()
    destroyElement resourceRoot )
end)

function hudobraz()
    if getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        hudobraz dxDrawImage(56536225129":hud/penta.png"000tocolor(255255255255), false)
        pieniadze getPlayerMoney(localPlayer)
        pokazp dxDrawText(pieniadze"PLN"60280731116tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
        reputacja dxDrawText(RP"RP"602126731162tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
        spr getPlayerName (localPlayer)
        nick dxDrawText(spr5964072576tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
    end
end



Podpis

Pomagam jak potrafię :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-15, 09:17


Query

SyndicateMTA






Wiek: 24
Na forum: 3072 dni
Posty: 319
Nick w MP: Query

Piwa: 5257

Respekt: 141
Respekt: 141

kuba43, Kolego po co ci export do RP? Skoro mo?esz dane "reputation" pobiera? poprzez el-date

Podpis
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
kuba43
Wysłany: 2018-12-15, 09:54


kuba43







Wiek: 45
Na forum: 3225 dni
Posty: 166
Nick w MP: definitly

Piwa: 17

Respekt: 30,5

Roe, Sk?d masz pewno?? ?e to ja przeciez tego nie pisze?
darecky02, No tak jest el data.

Podpis
„(…) wystarczy, że odpowiesz sobie na jedno zajebiście, ale to zajebiście, ważne pytanie: co lubię w życiu robić. A potem zacznij to robić.”.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-15, 10:04


Query

SyndicateMTA






Wiek: 24
Na forum: 3072 dni
Posty: 319
Nick w MP: Query

Piwa: 5257

Respekt: 141
Respekt: 141

czcionka dxCreateFont (":noti/czcionka.ttf"10)
sxsy guiGetScreenSize ()
hudOn false
uid getElementData (localPlayer"player:uid")
RP getElementData(localPlayer,"player:reputation")

    
    if not hudobraz and getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        pokazhud()
    end
end)

addEventHandler ("onClientPlayerSpawn"resourceRoot, function()
    if not hudobraz and getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        hud()
    end
end)

addEventHandler ("onClientResourceStop"resourceRoot, function()
    destroyElement resourceRoot )
end)

function hudobraz()
    if getElementData(localPlayer"id") and getElementData(localPlayer"player:uid"then
        hudobraz dxDrawImage(56536225129":hud/penta.png"000tocolor(255255255255), false)
        pieniadze getPlayerMoney(localPlayer)
        pokazp dxDrawText(pieniadze"PLN"60280731116tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
        reputacja dxDrawText(RP"RP"602126731162tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
        spr getPlayerName (localPlayer)
        nick dxDrawText(spr5964072576tocolor(255255255255), 1.00czcionka"left""center"falsefalsefalsefalsefalse)
    end
end


Podpis
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
kuba43
Wysłany: 2018-12-15, 10:20


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

od kiedy export do bazy danych dzia?a po stronie KLIENTA?? wprowadzili co? nowego?

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
kuba43
Wysłany: 2018-12-15, 10:29


Query

SyndicateMTA






Wiek: 24
Na forum: 3072 dni
Posty: 319
Nick w MP: Query

Piwa: 5257

Respekt: 141
Respekt: 141

Kalizman, dlatego niech stosuje el'date

Podpis
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
kuba43
Wysłany: 2018-12-15, 10:39


kuba43







Wiek: 45
Na forum: 3225 dni
Posty: 166
Nick w MP: definitly

Piwa: 17

Respekt: 30,5

Przepraszam za moje zachowanie, ?le post?pi?em.
Dzi?kuje za wszystkie odpowiedzi, zapomnia?em ?e export nie mo?e dzia?a? po stronie klienta.

Podpis
„(…) wystarczy, że odpowiesz sobie na jedno zajebiście, ale to zajebiście, ważne pytanie: co lubię w życiu robić. A potem zacznij to robić.”.
Postaw piwo autorowi tego posta
 

 
Tagi: export :: nie :: chce :: działac
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