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
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