CLEO Help How to use 'wait' in SF cmds

CLEO related
Status
Not open for further replies.

SanGiovanni

Member
Joined
May 4, 2014
Messages
7
Reaction score
0
function 'wait' isn't working in cmds, what should I use?


Code:
:cmd
say "/abc"
wait 1000
say "/def"
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
That would be the ideal way, check if X == TRUE then CALL_FUNC.
Or my shitt way;

Code:
:test
0B35: 0@
IF 31@ <> 0
THEN 0C6E: destroy_custom_thread 31@
END
0C6A: 31@ = create_custom_thread_at_label @testFunc
0C6C: set_thread 31@ local_var 0 = 0@
CMDRET

:testfunc
wait 1000
0AF8: "%s" -1 0@
wait 1000
0AF9: "/abc" 
end_thread
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B34: samp register_client_command "asd" to_label [member=1606]asd[/member]



WHILE TRUE
    WAIT 0
    if
    0@ == true
    then
        say "/abc"
        wait 1000
        say "/def"
        0@ = false
    end
END



:asd
0@ = true
0B43: samp cmd_ret
 
Status
Not open for further replies.
Top