hustlamike
Shit happens.
- Joined
- Dec 23, 2007
- Messages
- 134
- Reaction score
- 0
This is the error...
I need to put an exhaust on this script can anyone help me do it..? rep+
Here's the script...
Code:
[14/03/2009 03:48:30] Lua Script Error: [Action Interface]
[14/03/2009 03:48:30] data/actions/scripts/shop/mp.lua:onUse
[14/03/2009 03:48:30] luaDoAddContainerItem(). Could not add item
I need to put an exhaust on this script can anyone help me do it..? rep+
Here's the script...
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, 1000) == 1 then
backpack = doPlayerAddItem(cid, 2001, 1)
for i = 1,20 do
doAddContainerItem(backpack, 7620, 1)
end
else
doPlayerSendCancel(cid, 'You don't have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return TRUE
end