As the title says, I cant get this to work.
It does tp the player if I set a fixed value instead of the fromPosition. But I just cant get it to work
Here is my code:
I get this in console
So its just the fromPosition thing that doesnt work Anyone got a clue?
It does tp the player if I set a fixed value instead of the fromPosition. But I just cant get it to work
Here is my code:
Lua:
function onStepIn(cid, item, fromPosition, itemEx, toPosition)
if(cid:getStorageValue(28003) > 0) then
if cid:isPlayer() then
print(position.x, position.y, position.z)
print(fromPosition.x, fromPosition.y, fromPosition.z)
print("This area is currently locked!")
cid:teleportTo(fromPosition, true)
end
end
end
I get this in console
So its just the fromPosition thing that doesnt work Anyone got a clue?