A Dirty Rag
Active Member
- Joined
- Mar 31, 2014
- Messages
- 147
- Reaction score
- 32
Getting the error: 'attempt to index a boolean value in `doCreateItem`'
Any help is appreciated.
Any help is appreciated.
Code:
local function createItems()
local pos = getCreaturePosition(cid)
doCreateItem(146, 1 , pos)
end
function onStepIn(cid, item, pos)
if item.itemid == 146 then
if isPlayer(cid) == TRUE then
doCreatureAddHealth(cid, 1000)
doRemoveItem(item.uid)
addEvent(createItems, 25000)
end
end
return TRUE
end