Not working, Why?
![erro2b.png](/proxy.php?image=http%3A%2F%2Fimg63.imageshack.us%2Fimg63%2F5027%2Ferro2b.png&hash=fba1843d5af5ccf1f00a72ffc323abfa)
HTML:
function onUse(cid, item, frompos, item2, topos)
endgatepos = {x=234, y=377, z=8, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 1016 and item.itemid == 1945 and getgate.itemid == 1355 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 1016 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1355,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end