viking
Member
- Joined
- Aug 20, 2015
- Messages
- 323
- Reaction score
- 22
Hello, i got this error on my script:
I'm using tfs 1.2
thankss
I'm using tfs 1.2
Code:
bronze = {x=33570, y=32418, z=12}
salabronze = {x=33606, y=32393, z=11}
function onUse(cid, item, fromPosition, itemEx)
local player = Player(cid)
if not player then
return true
end
if(item.itemid == 22606) then
if(itemEx.itemid == 22636) then
if player:getStorageValue(1) and not isPlayerInArea({x = 33560, y = 32414, z = 12, stackpos = 255}, {x = 33534, y = 32429, z = 12, stackpos = 255}) then
doTeleportThing(cid, bronze)
doSummonCreature("zavarash", {x=33565, y=32418, z=12})
doRemoveItem(item.uid, 1)
end
end
end
return true
end
thankss