CLEO Help 0001: wait - Why doesn't it work?

CLEO related
Status
Not open for further replies.

moadif

Member
Joined
Apr 17, 2013
Messages
11
Reaction score
0
Hello,

I've been messing around with CLEO lately and I got to a point where 0001: wait 2000 doesn't actually sleep for 2 seconds(or whatever) before executing the next line
Here's the code where's the "0001: wait" placed(It doesn't seem to work anywhere else aswell):
117b65182f.png
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
"wait" only instructs the CLEO to wait for the time set and then initialise the cleo script, it has nothing to do with sleep.
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
Hi, I had the same problem while using "wait" within a command label.

Code:
0B34: samp register_client_command "" to_label @activate

:First
wait 0
if 31@ == 1 
then

//here "wait 2000" should work properly

end
jump @First

:activate
0B12: 31@ = 31@ XOR 1
samp.CmdRet
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
You could've used search.
http://ugbase.eu/help-7/%28help%29-%27pmall%27/msg67725/#msg67725
http://ugbase.eu/help-7/%28help-request%29wait-and-0b34-are-not-compatible/msg41507/#msg41507

you can call functions from commands func, maybe that can help you.
 
Status
Not open for further replies.
Top