• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Repair error in script t.t

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Reaction score
12
Location
Venezuela
Code:
[14:48:53.021] [Error - MoveEvents Interface]
[14:48:53.021] data/movements/scripts/bridge3.lua:onStepIn
[14:48:53.021] Description:
[14:48:53.021] data/movements/scripts/bridge3.lua:6: attempt to compare number with boolean
[14:48:53.021] stack traceback:
[14:48:53.021]  data/movements/scripts/bridge3.lua:6: in function <data/movements/scripts/bridge3.lua:1>

Code:
[14:48:19.306] [Error - MoveEvents Interface]
[14:48:19.307] data/movements/scripts/bridge2.lua:onStepIn
[14:48:19.307] Description:
[14:48:19.307] data/movements/scripts/bridge2.lua:6: attempt to compare number with boolean
[14:48:19.307] stack traceback:
[14:48:19.307]  data/movements/scripts/bridge2.lua:6: in function <data/movements/scripts/bridge2.lua:1>


Bridge3


Code:
function onStepIn(cid, item, pos)
local p = getPlayerPosition(cid)
local nppos = {x=p.x, y=p.y+1, z=p.z, stackpos=1}

if item.actionid == 2001 then
    if getPlayerPremiumDays(cid) >= 1 then
else
doTeleportThing(cid,nppos)
doPlayerSendTextMessage(cid,22,"Solo pueden pasar personas VIP Account. Para comprar vip account diga needvip para mas informacion./ Only VIP Account's pass here. For buy one VIP Account enter in the WEB and search the shop.")
end
end
end


Bridge2


Code:
function onStepIn(cid, item, pos)
local p = getPlayerPosition(cid)
local nppos = {x=p.x-1, y=p.y, z=p.z, stackpos=1}

if item.actionid == 2000 then
if getPlayerPremiumDays(cid) >= 1 then
else
doTeleportThing(cid,nppos)
doPlayerSendTextMessage(cid,22,"Solo pueden pasar personas VIP Account. Para comprar vip account diga needvip para mas informacion./ Only VIP Account's pass here. For buy one VIP Account enter in the WEB and search the shop.")
end
end
end


Please help t.t

I give rep++ ;)
 
">= true" oh lol

Just in your case , and i donno how it is like that cause it must return numerical value , so just use
Lua:
if isPremium(cid)  then  ---> it is equal if you are checking if he have one day or higher.
 
Last edited:
Back
Top