• 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!

door problem

ToloXXX

New Member
Joined
Dec 14, 2014
Messages
93
Reaction score
4
im using this script

door.lua :
Lua:
local level = 100 -- This or higher to pass

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerLevel(cid) => level then
		doTeleportThing(cid, toPosition, true)
		doTransformItem(item.uid, item.itemid+1)
	end
	return true
end
[code=lua]

action.xml :

<action actionid="5555" event="script" value="door.lua"/>



but get an error :
[04/11/2016 03:43:22] [Error - LuaScriptInterface::loadFile] data/actions/scripts/door.lua:4: 'then' expected near '='
[04/11/2016 03:43:22] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/door.lua)
[04/11/2016 03:43:22] data/actions/scripts/door.lua:4: 'then' expected near '='


any thoughts?
 
change => to >=

Rule is: greater or equal, not equal or greater. You probaby had this on math, same rule is in programming.
 
Back
Top