The script works, but how to fix this error?
console error
Script
console error
C++:
Lua Script Error: [Action Interface]
data/actions/scripts/other/premium30dni.lua:onUse
luaDebugPrint(). Deprecated function.
stack traceback:
[C]: in function 'debugPrint'
data/lib/compat/compat.lua:406: in function 'doSendAnimatedText'
data/actions/scripts/other/premium30dni.lua:11: in function <data/actions/scripts/other/premium30dni.lua:7>
Script
C++:
local this_script_is_awesome = true -- The choice is your if you want the script work then you leave it true
local otswe = {
prem_days = 30, -- Edit how many days
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if this_script_is_awesome == true then
if isPlayer(cid) then
doPlayerAddPremiumDays(cid, otswe.prem_days)
doSendAnimatedText(getCreaturePosition(cid), otswe.prem_days, TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, 19, "Gratz you have obtained +30 premium days.")
doRemoveItem(item.uid, 1)
else
doPlayerSendTextMessage(cid, 19, "The admin dont want to admit it -.-.")
end
end
end