- Joined
- Jul 7, 2007
- Messages
- 4,049
- Reaction score
- 240
Hey
I'm at the moment experiencing an error that doesn't seem to make any sense to me
As an example of my problem, I am using a talkaction to create an item and another to destroy that same item(not pickupable)
When I create an item, everything is fine, but when I use the doRemoveItem it says it can't find the item..
Console:
As you can see from the prints, the ID's the same, so I'm really clueless here..
Thanks in Advance
Scarlet
I'm at the moment experiencing an error that doesn't seem to make any sense to me
As an example of my problem, I am using a talkaction to create an item and another to destroy that same item(not pickupable)
Code:
local var = nil
function onSay(cid, words, param, channel)
if param == "create" then
var = doCreateItem(1614, getCreaturePosition(cid))
print("Item UID: " .. var)
elseif param == "destroy" then
print("Var: " .. var)
doRemoveItem(var, 1)
var = nil
end
end
When I create an item, everything is fine, but when I use the doRemoveItem it says it can't find the item..
Console:
Item UID: 70045
Var: 70045
[1:23:05.944] [Error - TalkAction Interface]
[1:23:05.945] data/talkactions/scripts/test.lua: onSay
[1:23:05.947] Description:
[1:23:05.948] (luaDoRemoveItem) Item not found
As you can see from the prints, the ID's the same, so I'm really clueless here..
Thanks in Advance
Scarlet