hello any1 can help me plz?
i want a rebirth system for b-fox 6.8 (8.1)
i use:
but send this error:
need HELP PLEASE!
i want a rebirth system for b-fox 6.8 (8.1)
i use:
Code:
function onSay(cid, words, param)
if getPlayerVocation(cid) == 1 then
if getPlayerLevel >= 300 then
db.executeQuery("UPDATE players SET level = 8, experience = 4200, vocation = 1 WHERE name ='"..name.."';")
else
doPlayerSendCancel(cid, "You need lvl 300 to rebirt!")
doSendMagicEffect(getCreaturePosition(cid), 2)
end
end
end
but send this error:
Code:
attempt to index global 'db' <a nil value>
need HELP PLEASE!