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

Poblem script boolean

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
I have a problem whit this script..
i need this script check if in zone have 2 or more players in zone.. for work..
i using this..

Code:
for x = 232, 2020 do
			for y = 235, 2020 do
				pos = {x = x, y = y, z = getCreaturePosition(cid).z}
				
		if(isPlayer(getTopCreature(pos).uid)) > 1 and (isCreatureInArea({x = 214, y = 2014, z = 8}, {x = 224, y = 2024, z = 8})) == 0 then
print("2")

error: attemp to compare numbre with boolean
how can fix this?
 
Lua:
for x = 232, 2020 do
			for y = 235, 2020 do
				pos = {x = x, y = y, z = getCreaturePosition(cid).z}
				
		if(isPlayer(getTopCreature(pos).uid)) > 1 and (isCreatureInArea({x = 214, y = 2014, z = 8}, {x = 224, y = 2024, z = 8})) == false then
print("2")
 
Back
Top