CLEO Help [HELP] Why waiting 3seconds ?

CLEO related
Status
Not open for further replies.

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
Hello,i trying made cleo to type text. but he type in 3 seconds.

Code:
{$CLEO .cs}

thread "chec"


 :ON
wait 0
if
0ADC: "ligar"
jf @ON
print "ON" 1337


:Load

wait 0 
if
  SAMP.Available
else_jump @Load

  wait 0
  for 0@ = 0 to 250
    wait 0
    if
      SAMP.IsPlayerConnected(0@)
    then
      2@ = SAMP.GetPlayerNickname(0@)
      if or
        0C14: strcmp string1 2@ string2 "player_name" 
     
      then
      wait 0
        0AF9: "/sellwep %s" 2@ 
      end
    end
  end
  
  
  

:OFF
wait 0
if
0ADC: "des"
jf @load

print "OFF" 1337
goto @ON

i want to execute the command to 300MS and not 3seconds

YcdiMUx.jpg
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
Opcode.eXe link said:
I dont know what you mean but:
Never put a wait 0 after for loops :D
- REMOVE THE wait 0:

for 0@ = 0 to 250
    wait 0

Thank you for sharing your knowledge

But i remove all wait and worked,thanks Opcode.
 
Status
Not open for further replies.
Top