Help What am I doing wrong?

pwpwpwn

Member
Joined
May 4, 2024
Messages
11
Reaction score
0
Hello, I have 2 same cleo scripts, one works and one gives this error "Unknown directive . (Dot)"

This works:
{$CLEO .cs}

thread 'TESTCLEO'

:TESTCLEO_01
wait 0
if
0AB0: key_pressed 123
004D: jump_if_false @TESTCLEO_01
0332: set_actor $PLAYER_ACTOR bleeding 1
jump @TESTCLEO_01

This gives error:
{$CLEO .cs}

thread 'amg'

:amg
wait 0
if
0AB0: key_pressed 123
004D: jump_if_false @amg
0332: set_actor $PLAYER_ACTOR bleeding 1
jump @amg
Im going crazy @_@
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,165
Solutions
6
Reaction score
895
Location
Lithuania
Using phone i made this:
PHP:
{$CLEO .cs}

0000:

While True
wait 0

If
0AB0: key_pressed 123
Then
0332: set_actor $PLAYER_ACTOR bleeding 1
End

End
 
Top