anyone know whats wrong with this code? its supposed to create a stone at a position. (when using lever)
Code:
function onUse(cid, item, frompos, item2, topos)
local pos = {626, 237, 7}
if(item.itemid == 1946 and item.uniqueid == 5556) then
doCreateItem(1355, 1, pos)
end
if(item.idemid == 1945 and item.uniqueid == 5556) then
doRemoveItem(5556, 1)
end
end