local corde = {x = 123, y = 123, z = 7}
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) == 210000 then
doTeleportThing(cid, corde)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
else
doPlayerSendTextMessage(cid, 22, "voce nao e nivel maior que 210000 e nao pode entrar")
end
return true
end
so mudar as cordenadas em {x = 123, y = 123, z = 7}






info
Grupo: Artesão
Registrado: 16/09/11
Posts: 100
Reputação: +1
Estou com este erro em meu server , alguem poderia ajudar? O erro aparece no console e nao para de repetir...
Versão 8.6
.Exe: Alissow 0.4.1
[18/03/2014 22:13:36] [Error - MoveEvents Interface]
[18/03/2014 22:13:36] data/movements/scripts/tilelevel8.lua:onStepIn
[18/03/2014 22:13:36] Description:
[18/03/2014 22:13:36] (internalGetPlayerInfo) Player not found when requesting player info #3
[18/03/2014 22:13:36] [Error - MoveEvents Interface]
[18/03/2014 22:13:36] data/movements/scripts/tilelevel8.lua:onStepIn
[18/03/2014 22:13:36] Description:
[18/03/2014 22:13:36] data/movements/scripts/tilelevel8.lua:2: attempt to compare boolean with number
[18/03/2014 22:13:36] stack traceback:
[18/03/2014 22:13:36] data/movements/scripts/tilelevel8.lua:2: in function <data/movements/scripts/tilelevel8.lua:1>
[/spoiler/
Script abaixo
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) <=210000 then
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, 22, "voce nao e nivel maior que 210000 e nao pode entrar")
doSendMagicEffect(fromPosition, CONST_ME_POFF)
end
end
Editado Março 18 por Prototype