Hey i started getting this error today, and lags the server as fuckkkkkkkkkkkkk
The thing is that the script actually works and it didnt gave me any errors till today.
heres the code
The thing is that the script actually works and it didnt gave me any errors till today.
Code:
[02/05/2014 16:54:29] [Error - MoveEvents Interface]
[02/05/2014 16:54:30] data/movements/scripts/leveltpguess.lua:onStepIn
[02/05/2014 16:54:30] Description:
[02/05/2014 16:54:30] data/movements/scripts/leveltpguess.lua:3: attempt to compare boolean with number
[02/05/2014 16:54:31] stack traceback:
[02/05/2014 16:54:31] data/movements/scripts/leveltpguess.lua:3: in function <data/movements/scripts/leveltpguess.lua:1>
heres the code
Code:
function onStepIn(cid, item, pos)
if getPlayerLevel(cid) <= 400 and getPlayerAccess(cid) <= 1 then
doPlayerSendCancel(cid,"Only players with level 400 or more may pass!")
doSendMagicEffect(pos, 2)
pos.y = pos.y+1
doTeleportThing(cid, pos)
doSendMagicEffect(pos, 2)
end
end