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: działac
1. Export nie chce działac
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:
[lua]
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, tocolo...