• 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!

Action Scripts

Lifer420

Advanced OT User
Joined
Jul 27, 2009
Messages
1,490
Reaction score
196
Hey, I have a package of potions as a script, but when I use it, it gives the potions and removes the old item, but I get a console error saying [Action error, cannot "GetPlayerById" anyone know what causes this? It's when I use the item

TFS 0.4 DEV 3884

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerItemById(cid, 6104) then
        doPlayerAddItem(cid, 7618, 10)
        doPlayerAddItem(cid, 7620, 10)
                doRemoveItem(item.uid)
    end
    return true
end
 
Maybe your potionscript is listening to another script, check so that the potions only call for the script you have posted, since there is no "getPlayerByID" in this one.

to be clear, the potions are fine? They work as intented? Except that you get this console error?
 
Back
Top