Hi, i tried to make a CMD when someone say in chat a thing to auto response after 5 seconds with a command, but when i try to compile gives me the error Not enough actual parameters. Expected 2 params.
Code:
{$CLEO .cs}
0000: NOP
REPEAT
wait 0
UNTIL 0AFA:
0AF8: samp add_message_to_chat "{FFFFFF}Auto"
0B34: "activatecmd" @CMD
0AC8: 2@ = allocate_memory_size 258
0AC8: 3@ = allocate_memory_size 258
WHILE TRUE
wait 0
FOR 1@ = 98 TO 99
0B75: samp get_chat_string 1@ text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
IF
0@ == TRUE
THEN
IF
0C29: $NOT_USED = stristr string1 2@ string2 "x"
THEN
wait 5000
0AF9: samp say_msg "/command"
0AB0: key_pressed 13
END
END
END
END
:CMD
0B12: 0@ = 0@ XOR TRUE
IF
0@ == FALSE
THEN
print "~y~Auto: ~r~off" 2000
ELSE
print "~y~Auto: ~g~on" 2000
END
0B43: