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..
error: attemp to compare numbre with boolean
how can fix this?
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?