CLEO Help [HELP]A loop

CLEO related
Status
Not open for further replies.

JrJunioru

Member
Joined
Apr 7, 2017
Messages
14
Reaction score
0
thread 'KEYBINDER'

repeat
wait 0
until SAMP.Available()

WHILE TRUE
WAIT 0 
    if
        31@ == 1
    then
        0AF9:   samp say_msg "/pizza"
        wait 65000
        0AF9:   samp say_msg "/rcc"
        return 0
    end
    if and
        0AB0:   key_pressed 123
        8B21:   not samp is_chat_opened
    then
        if
            31@ == 0 
        then
            31@ = 1
            018C: play_sound 1083 at 0.0 0.0 0.0
        else          
            31@ = 0
            018C: play_sound 1084 at 0.0 0.0 0.0 
        end           
    end
END

Ok, what i want?:
The loop is working well, if i'm pressing 'F12' it is starting: /pizza, after 65 seconds /rcc and again /pizza!BUT!!!/rcc is not working, it is giving me : 'Unknown command'(in-game), i have the cleo with 'rcc' command, and it is working well if i'm writing /rcc.
Explain:
F12 => /pizza, after 65 seconds, /rcc(not working), /pizza
Solve(but it's boring):
F12 => /pizza, after 65 seconds, /rcc(not working), /pizza, /rcc(i'm wroting it manual, working), after 65 seconds, /rcc(not working), /pizza, after 65 seconds.... again and again...
So what i want?
If i'm pressing F12 to do : /pizza, wait 65 seconds, /rcc(to work), /pizza. Again and again....
If u don't understand, pm me.
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
IIRC the only way you can activate a SF registered command inside of a script you should either call its func from other script or merge and call it within the script that registers this /rcc command
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
JrJunioru said:
So? How can I do this.. Can u give me some help? I'm begineer, if u need the other script I can give it.

If you're a beginner then it's not your league cuz it is better to learn basics before you jump off for these solutions
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
just replace this:

0AF9:   samp say_msg "/rcc"

with this:
0C8F: samp process_chat_input "/rcc"
 
Status
Not open for further replies.
Top