CLEO Help How to make a command to loop?

CLEO related
Status
Not open for further replies.

dezarer

New member
Joined
Jan 22, 2019
Messages
4
Reaction score
0
WAIT 500
0b63: "drink"

// 0b63
0b34: "drink" @1

:loop
wait 0
jump @loop

:1
while true
0001: wait 20000 ms
0AF9: samp say_msg "/drink"
end

GTA SA It crashes when I type the command /drink . i want to make this command drink to LOOP continuously
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Code:
{$CLEO .cs} 
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
0B34: "drink" @DRINK
0@ = FALSE

While True
Wait 0
If
0@ == TRUE
Then
say "/drink"
wait 20000
end
END

:DRINK
0B12: 0@ = 0@ XOR TRUE
If
0@ == TRUE
Then
0ACD: show_text_highpriority "~W~DRINK: ~G~ON~W~" time 1000
else
0ACD: show_text_highpriority "~W~DRINK: ~R~OFF~W~" time 1000
end
CmdRet
 
Status
Not open for further replies.
Top