tatu hunter
Insane Mind~
When I try to remove the wall I got this error:
my code:
[01/02/2008 03:00:06] Lua Script Error: [Action Interface]
[01/02/2008 03:00:06] data/actions/scripts/wall1.luanUse
[01/02/2008 03:00:06] luaDoRemoveItem(). Item not found
my code:
Code:
function onUse(cid, item, frompos, item2, topos)
local wall1 = {x = 1496, y = 1488, z = 5}
local wall2 = {x = 1497, y = 1488, z = 5}
if(item.uid == 3333) then
if(item.itemid == 1945) then
doRemoveItem(wall1.uid, 1)
doRemoveItem(wall2.uid, 1)
doTransformItem(item.uid, 1946)
elseif(item.itemid == 1946) then
doCreateItem(1052, 1, wall1)
doCreateItem(1052, 1, wall2)
doTransformItem(item.uid, 1945)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
end
return 1
end