CLEO Help Problem

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
What wrong here ? Why don't work call ?

PHP:
{$CLEO .cs}

0000: NOP

REPEAT
wait 0
UNTIL 0AFA:

WHILE TRUE
wait 0 

IF 00DF:   actor $PLAYER_ACTOR driving
THEN
    0@ = Actor.CurrentCar($PLAYER_ACTOR)
    
    IF 
    Car.Model(0@) == #INFERNUS
    THEN
        05AA: 1@s = 'INFERNUS' // @s = 'short'  // Infernus
        call @CarName 0
    END
    
END // END 00DF:   actor $PLAYER_ACTOR driving

END // END WHILE TRUE


:CarName
03F0: enable_text_draw 1 
033F: set_text_draw_letter_size 0.5 1.0 
060D: draw_text_shadow 1 rgba 3 3 3 180 
0340: set_text_draw_RGBA 255 255 255 255 
0349: set_text_draw_font 1 
0343: set_text_draw_linewidth 400.0 
081C: draw_text_outline 1 RGBA 0 0 0 255 
033E: set_draw_text_position 155.0 358.0 GXT 1@s 
ret 0

@supahdupahnubah
@monday
@springfield
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
PHP:
PHP Code:
{$CLEO .cs}

0000: NOP

REPEAT
wait 0
UNTIL 0AFA:

WHILE TRUE
wait 0 

    IF 00DF:   actor $PLAYER_ACTOR driving
    THEN
        0@ = Actor.CurrentCar($PLAYER_ACTOR)
        
        IF 00DD:   actor $PLAYER_ACTOR driving_car_with_model #INFERNUS
        THEN
            0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED100' 1@
            0AA5: call 0x718600 2 pop 2 1@ "INFERNUS" 
            call @CarName 0
        END
        
    END // END 00DF:   actor $PLAYER_ACTOR driving

END // END WHILE TRUE


:CarName
03F0: enable_text_draw 1 
033F: set_text_draw_letter_size 0.5 1.0 
060D: draw_text_shadow 1 rgba 3 3 3 180 
0340: set_text_draw_RGBA 255 255 255 255 
0349: set_text_draw_font 1 
0343: set_text_draw_linewidth 400.0 
081C: draw_text_outline 1 RGBA 0 0 0 255 
033E: set_draw_text_position 155.0 358.0 GXT 'CRED100'
ret 0

i would not use call for this
 
Status
Not open for further replies.
Top