russogracie
New Member
- Joined
- Sep 9, 2010
- Messages
- 205
- Reaction score
- 2
I wanted my script from deleting items that had not furnished his name in the description, so I put this case but the item is not being deleted:
Wath is the error?
function onEquip(cid, item, slot)
local f = getItemAttribute(item.uid, 'description')
if f then doPlayerRemoveItem(cid,iditem,1)
if f then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Esse item pertence ao player '..f..'!') end
return not f or f == getCreatureName(cid)
end
return TRUE
end
Wath is the error?