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