CLEO Help What is wrong whit this 0AB1: ?

CLEO related
Status
Not open for further replies.

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
So... i made this function, but it's buggy and idk why.

Code:
IF 0AB1: @samecolor 1 player id 0@
THEN
chatmsg "SAMECOLOR" -1
END
:samecolor
0B37: samp 1@ = get_player_color 0@
0B2B: samp 2@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B37: samp 3@ = get_player_color 2@
if 003A: 3@ == 1@
then 0485:  return_true 
else 059A:  return_false
end
ret 0
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
What's buggy? What doesn't work?
Also, i assume that's just an example and you don't jump from that end to the function label.
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
springfield said:
What's buggy? What doesn't work?
Also, i assume that's just an example and you don't jump from that end to the function label.

Ok, it stops the code, like a wait during some ms and some times don't return the correct valor.
 
Status
Not open for further replies.
Top