• 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 Expected boolean type parameter

Engeltj

Member
Joined
Aug 22, 2007
Messages
60
Reaction score
5
Location
Canada
Ive been getting this error when a player with access (GM only tested) steps on my tile that activates this script:
Code:
function onStepIn(cid, item, frompos, item2, topos)
	if item.actionid == 2004 and getPlayerLevel(cid) < 30000 then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is recommended you reach at least 30k before moving on!")
		return true
	end
end

If I remove the "getPlayerLevel(cid) < 30000" then theres no error. How do I get the console to stop spamming this? (error attached)
Ive tried adding in "if getPlayerAccess(cid) == 0" but of course the error is coming from the "checks" run on the GMs stats or something..
I see the error furthermore from other scripts such as changegold.lua (when user changes CC to Plat)

Thanks in advance,
Engeltj
 

Attachments

LUA:
function onStepIn(cid, item, frompos, item2, topos)
	if item.actionid == 2004 and getPlayerLevel(cid) < 30000 then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is recommended you reach at least 30k before moving on!")
                doTeleportThing(cid, frompos)
		return true
	end
      return true
end
 
Back
Top