MaR0
Banned User
- Joined
- Apr 16, 2018
- Messages
- 272
- Solutions
- 3
- Reaction score
- 29
I am a novice in TFS 1.2 10.98 but do not know what the error is? It works well in my TFS 0.4 here is the error code at console :-
HERE'S my script
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/exp.lua:onUse
LuaScriptInterface::luaDebugPrint(). Deprecated function.
stack traceback:
[C]: in function 'debugPrint'
data/lib/compat/compat.lua:418: in function 'doSendAnimatedText'
data/actions/scripts/exp.lua:6: in function <data/actions/scripts/exp.lua:1>
Code:
<action itemid="5957" script="exp.lua" />
LUA:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5957 then
if getPlayerLevel(cid) <= 50 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Free Exp wiii!", TEXTCOLOR_RED)
doPlayerAddExp(cid, 80000000000)
setPlayerStorageValue(cid, 11551, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendTextMessage(cid, 4, "Stop cheating, you are too high to use it...")
doRemoveItem(item.uid, 1)
end
else
end
return 1
end