• 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 Random Error- Expected integer parameter.. help!

seto sazo

Member
Joined
Apr 27, 2009
Messages
162
Reaction score
21
Trying to fix all the errors I get in my console... and for a couple of scripts I have I get this error, the script runs and works fine but it just pops up this error and it's annoying. I'm using Avesta 0.6.3.
LuaScriptInterface::popNumber(). Error: Expected an integer parameter.

Heres one script that makes the error pop up.
LUA:
local pos = {x = 703, y = 603, z = 7}
function onStepIn(cid, item, position, fromPosition)
		if getPlayerStorageValue(cid, 7000) <= 0 then
		doTeleportThing(cid, pos)
		doSendMagicEffect(pos, CONST_ME_TELEPORT)
					doPlayerSendTextMessage(cid, 18, "You need a private account!")
	end
	return true
end
 
Last edited:
I have the same issue, many scripts (even doh they work) spam my console with these types of errors. I am using latest avesta sources compiled and running on linux (ubuntu).
 
Also the case here.... I've noticed that in Avesta sources, some of the scripts only push Boolean. which makes no sense for some of the functions. getplayerstorage pushes both boolean and number but only returns Boolean. Have to fix it in sources.
 
Back
Top