Protential
Active member
- Joined
- Jun 8, 2013
- Messages
- 61
- Reaction score
- 0
Hello, I'm trying to figure out how to use the OPCODES
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.
What's the correct way to use the opcode?
Code:
0B34: samp register_client_command "mycommand" to_label @mycommand
SAMP.IsCommandTyped
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