Siema,
mam taki problem:
"hudv1/c.lua:10 call: failed to call: 'ogrpg-db:dbGet' string "?"
Kto napisze prawid?owy kod daje
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... |