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: at]
1. attempt to compare boolean with number Expected element at]
Witam posiadam dwa problemy
[19-07-24 22:37:57] ERROR: busty/bust_s.lua:20: attempt to compare boolean with number
[19-07-24 22:37:57] WARNING: busty/bust_s.lua:20: Bad argument @ 'getElementData' [Expected element at argument 1, got string 'down']

[lua]
function setbustrpday(plr,days)
if getbustday(plr) then
local queryA=exports['pystories-db']:dbSet(string.format("UPDATE pystories_users SET bust_rp = DATE(bust_rp) + INTERVAL %d DAY WHERE id=%d",days,getElementData(plr,"player:sid")))
return end
local queryA=exports['pystories-db']:dbSet(string.format("UPDATE pystories_users SET bust_rp = DATE(curdate()) + INTERVAL %d DAY WHERE id=%d",days,getElementData(plr,"player:sid")))
end

function getbustday(plr)
local queryA=exports['pystories-db']:dbGet("SELECT * FROM pystories_users WHERE id=? AND bust_rp>NOW() LIMIT 1", getElementData(plr,"player:sid"))
if (queryA and #queryA > 0) then
return queryA[1].bust_rp
end
return false
end

addEvent("dajbusta", true)
addEventHandler("dajbusta", resourceRoot, function(dni,plr,value)
if getElementData(plr,"player:pktgry") == 10 then triggerClientEvent(plr, 'onClientAddNotification', plr, "Kupi?e? busta RP na 1 dzie? ", 'succes')--linijka 18
else
if not getElementData(plr,"player:pktgry")<10 then triggerClientEvent(plr, 'onClientAddNotification', plr, "Nie posiadasz odpowiedniej ...