Help "Hello, I need help, WAIT is not working."

Batuhan337tr

Member
Joined
May 8, 2020
Messages
19
Solutions
1
Reaction score
0
Location
Turkey
I coded a CLEO script, but what I want is to send a packet to the server every 1 second. However, when I use a single command, the entire for loop value is sent to the server as a packet.
like this:
Screenshot_1.png

Code:
{$CLEO .cs}
0000:


REPEAT
WAIT 100
UNTIL 0AFA: SAMP_IS_READY

0B34: "tdclick" @textdraw

WHILE TRUE
WAIT 0
END

 
:textdraw
WAIT 1000 MS
0B35: 0@
for 1@ = 0 to 10000
0BCA: samp send_click_textdraw 1@
0AF8: "Process ID = %d" -1 1@
end
0B43:
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,103
Solutions
5
Reaction score
882
Location
Lithuania
PHP:
{$CLEO .cs}
0000:


REPEAT
WAIT 100
UNTIL 0AFA: SAMP_IS_READY

0B34: "tdclick" @textdraw

WHILE TRUE
WAIT 0

IF 31@ == TRUE // if code enabled then...
THEN
for 1@ = 0 to 10000
0BCA: samp send_click_textdraw 1@
0AF8: "Process ID = %d" -1 1@
end
31@ = FALSE // Disable code
END

END

 
:textdraw
31@  = TRUE // enable code after command
0B43:
 
Top