ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
I made a gold changer:
and it works fine in game but in my console i get
I'm new at coding so what does this mean?
Code:
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 3333 then
if getPlayerItemCount(cid, ITEM_GOLD_COIN) > 100
then doPlayerRemoveItem(cid, ITEM_GOLD_COIN, 100)
doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1)
end
end
end
and it works fine in game but in my console i get
Code:
Lua Script Error: [Action Interface]
blah.lua:onUse
LuaScriptInterface::popBoolean<>. Error: Expected boolean type parameter.
I'm new at coding so what does this mean?