CLEO Help Just when I thought I had it right... CMD Fail!

CLEO related
Status
Not open for further replies.

HooThaFuck

Active member
Joined
Apr 18, 2015
Messages
51
Reaction score
0
I have this code that crashes when I type /that.

Code:
{$CLEO .cs}
0000: NOP

REPEAT 
    WAIT 500
UNTIL SAMP.Available()
                                             
0B34: samp register_client_command "that" to_label @CMD_THAT
      
:loop
    WAIT 0
    GOTO @loop 
      
:CMD_THAT
    WAIT 0 
    SAMP.GetCurrentServerAddress(0@, 1@)
    IF
        0C14: strcmp 0@ "127.0.0.1"
    THEN  
        SAY "-| Hello World! |-" 
    END   
    JUMP @CMD_RET          

:CMD_RET
    WAIT 0
    SAMP.CmdRet()
    GOTO @loop
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Code:
{$CLEO}

thread "test"
REPEAT 
WAIT 500
UNTIL SAMP.Available()
                                             
0B34: "that" @CMD_THAT
      
while true
wait 0
end
      
:CMD_THAT
WAIT 0 
SAMP.GetCurrentServerAddress(0@, 1@)
IF
    0C14: 0@ "127.0.0.1"
THEN  
    SAY "-| Hello World! |-" 
END   
SAMP.CmdRet()
 
Status
Not open for further replies.
Top