CLEO Help what its wrong

CLEO related
Status
Not open for further replies.

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
i'm trying to detect one player in xy screen radius, i did this but every times returned false.


Code:
Example: $rangescreen = 100.0

12@ = 339.100
0065: 12@ -= $RANGESCREEN  //X NEGATIVA
13@ = 179.100
0065: 13@ -= $RANGESCREEN //Y NEGATIVA
14@ = 339.100
005D: 14@ += $RANGESCREEN //X POSITIVA
15@ = 179.100
005D: 15@ += $RANGESCREEN // Y POSITIVA
IF AND
0025: 14@ > 10@  // (float)
8025: not 12@ > 10@  // (float)
0025: 15@ > 11@  // (float)
8825: not 13@ > 11@  // (float)
THEN    
print "yolo" 1000

end
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
8825: not 13@ > 11@  // (float)


you could try it this way:
0025: 14@ > 10@
0025:  10@ > 12@  
0025: 15@ > 11@  
0025:  11@ > 13@

or check if 10@ and 11@ have correct values by logging/displaying their values
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
monday said:
8825: not 13@ > 11@  // (float)


you could try it this way:
0025: 14@ > 10@
0025:  10@ > 12@  
0025: 15@ > 11@  
0025:  11@ > 13@

or check if 10@ and 11@ have correct values by logging/displaying their values
Thanks!, idk how i don't saw that shit.
 
Status
Not open for further replies.
Top