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"
:cmd
say "/abc"
wait 1000
say "/def"
: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
{$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