CLEO Help 0B34 usage

CLEO related
Status
Not open for further replies.

Ben_

New member
Joined
Mar 25, 2015
Messages
1
Reaction score
0
hi, i want to know how to use 0B34; i made anim script but i want to activate it by samp command

so i added 0B34: "sitt" @NONAME_2 but it keeps crashing me


Code:
{$CLEO .cs}
0000: NOP

:NONAME_2
wait 0
04ED: load_animation "LOU_in"
wait 40
   SAMP.Available()
0B34: "sitt" @NONAME_2 
   not Actor.Driving($PLAYER_ACTOR)
jf @NONAME_2
wait 0
0605: actor $PLAYER_ACTOR perform_animation_sequence "int_house" IFP_file "LOU_in" 4.0 loop 0 1 1 1 time -1 // versionA
jump @NONAME_2
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Ben, your whole CLEO code structure is all over the place and messed up.

Take a look at this example -

Code:
{$CLEO}

thread "cleo"

repeat
wait 50
until SAMP.Available()
0B34: "sitt" @ANIM

while true
wait 0
end


:ANIM
wait 0
if 
        056D: $PLAYER_ACTOR
then
        04ED: "LOWRIDER"
        0605: $PLAYER_ACTOR "M_SMKLEAN_LOOP" "LOWRIDER" 4.0 0 0 0 0 -1 
end
SAMP.CmdRet()

and here's your script [member=37632]Ben_[/member]

Code:
{$CLEO}

thread "anim"

repeat
wait 50
until SAMP.Available()
0B34: "sitt" @ANIM

while true
wait 0
end


:ANIM
wait 0
if and 
        056D: $PLAYER_ACTOR
        not Actor.Driving($PLAYER_ACTOR)
then
        04ED: "INT_HOUSE"
        0605: $PLAYER_ACTOR "LOU_In" "INT_HOUSE" 4.0 0 0 0 0 -1 
end
SAMP.CmdRet()

You made a mistake by interchanging the IFP file with the animation, hence that's why it would have never worked. IFP file name is INT_HOUSE and the name of the animation is LOU_In.
 
Status
Not open for further replies.
Top