CLEO Help How to use register_client_command

CLEO related
Status
Not open for further replies.

Protential

Active member
Joined
Jun 8, 2013
Messages
61
Reaction score
0
Hello, I'm trying to figure out how to use the OPCODES
Code:
0B34: samp register_client_command "mycommand" to_label @mycommand
SAMP.IsCommandTyped
The command registers as the server doesn't return a message that it's an invalid command, but the result doesn't pop up. Here's a little script I made to test the opcode.
Code:
{$CLEO .cs}
thread "CommandTest"
0B34: 1@ = samp register_client_command "qwerty" to_label @renderText
:renderText
wait 0
if
SAMP.IsCommandTyped(1@)
jf @renderText
0ACD: show_text_highpriority "~G~WORKING." time 2000
jump @renderText
What's the correct way to use the opcode?
 
Status
Not open for further replies.
Top