CLEO Help Problem

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
What wrong here?
Why work only one time?

[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
 WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: "REPEAT" @Repeat

WHILE TRUE
 WAIT 0
  
IF 
30@ == TRUE
THEN
    0B35: samp 0@ = get_last_command_params
    IF          
    0AD4: $PLAYER_CHAR = scan_string 0@ format "%s %d %d" 1@v 29@ 30@ 
    THEN
        wait 30@
        IF
        8039:   not  31@ == 29@  // Note: the incorrect math opcode was used here
        THEN
            say "%s" 1@v 
            31@ += 1 
            printf "%d/%d" 500 31@ 29@
        END
    ELSE
        0AF8: "USAGE: /repeat <text> <times> <delay>" -1
        30@ = FALSE
    END 
END


END /// END WHILE TRUE

:Repeat
30@ = TRUE

0B43:


[/shcode]


@springfield
@monday
@Opcode.eXe
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
30@ == TRUE
0AD4: $PLAYER_CHAR = scan_string 0@ format "%s %d %d" 1@v 29@ 30@
wait 30@


all of the above use the same variable and I bet that's the problem
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
monday said:
30@ == TRUE
0AD4: $PLAYER_CHAR = scan_string 0@ format "%s %d %d" 1@v 29@ 30@
wait 30@


all of the above use the same variable and I bet that's the problem

So i change to not be same , bet get same shet....
 
Status
Not open for further replies.
Top