Wysłany: 2018-12-14, 23:56
kuba43
Wiek: 45 Na forum: 3225 dni Posty: 166
Nick w MP: definitly
Piwa : 17
Siema,
mam taki problem:
"hudv1/c.lua:10 call: failed to call: 'ogrpg-db:dbGet' string "?"
Kto napisze prawid?owy kod daje
Macie kodzik:
czcionka = dxCreateFont ( ":noti/czcionka.ttf" , 10 )
sx , sy = 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
setPlayerHudComponentVisible ( staryhud , false )
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 ( 565 , 36 , 225 , 129 , ":hud/penta.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
pieniadze = getPlayerMoney ( localPlayer )
pokazp = dxDrawText ( pieniadze "PLN" , 602 , 80 , 731 , 116 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
reputacja = dxDrawText ( RP "RP" , 602 , 126 , 731 , 162 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
spr = getPlayerName ( localPlayer )
nick = dxDrawText ( spr , 596 , 40 , 725 , 76 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
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ć.”.
Wysłany: 2018-12-15, 00:03
Mikołajj
Wiek: 22 Na forum: 2885 dni Posty: 303
Nick w MP: Mikołaj
Piwa : 132
Masz skrypt na database od ogrpg i go pod??czy?e??
Wysłany: 2018-12-15, 00:18
kuba43
Wiek: 45 Na forum: 3225 dni Posty: 166
Nick w MP: definitly
Piwa : 17
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ć.”.
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
Spr?buj to
czcionka = dxCreateFont ( ":noti/czcionka.ttf" , 10 )
sx , sy = 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 ( 565 , 36 , 225 , 129 , ":hud/penta.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
pieniadze = getPlayerMoney ( localPlayer )
pokazp = dxDrawText ( pieniadze "PLN" , 602 , 80 , 731 , 116 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
reputacja = dxDrawText ( RP "RP" , 602 , 126 , 731 , 162 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
spr = getPlayerName ( localPlayer )
nick = dxDrawText ( spr , 596 , 40 , 725 , 76 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
end
end
Podpis
Pomagam jak potrafię
Wysłany: 2018-12-15, 09:17
Query
SyndicateMTA
Wiek: 24 Na forum: 3072 dni Posty: 319
Nick w MP: Query
Piwa : 5257
kuba43 , Kolego po co ci export do RP? Skoro mo?esz dane "reputation" pobiera? poprzez el-date
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
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ć.”.
Wysłany: 2018-12-15, 10:04
Query
SyndicateMTA
Wiek: 24 Na forum: 3072 dni Posty: 319
Nick w MP: Query
Piwa : 5257
czcionka = dxCreateFont ( ":noti/czcionka.ttf" , 10 )
sx , sy = 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 ( 565 , 36 , 225 , 129 , ":hud/penta.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
pieniadze = getPlayerMoney ( localPlayer )
pokazp = dxDrawText ( pieniadze "PLN" , 602 , 80 , 731 , 116 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
reputacja = dxDrawText ( RP "RP" , 602 , 126 , 731 , 162 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
spr = getPlayerName ( localPlayer )
nick = dxDrawText ( spr , 596 , 40 , 725 , 76 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , czcionka , "left" , "center" , false , false , false , false , false )
end
end
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
od kiedy export do bazy danych dzia?a po stronie KLIENTA?? wprowadzili co? nowego?
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
Kalizman , dlatego niech stosuje el'date
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
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ć.”.
Tagi: export :: nie :: chce :: działac
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: