• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help needed!

hustlamike

Shit happens.
Joined
Dec 23, 2007
Messages
134
Reaction score
0
This is the error...
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
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

backpack = doPlayerAddItem(cid, 2001, 1)
   
    if doPlayerRemoveMoney(cid, 1000) == 1 then
       doAddContainerItem(backpack, 7620, 1)
    
    else
        doPlayerSendCancel(cid, 'You don't have enough money.')
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
    end
    return 1
end
 
Back
Top