Question: When the cleo read from chat "Abana avenue" will type "/aaa" ("/aaa" is a cleo which press key ENTER). The problem is the key ENTER will be pressed forever. I want after the cleo will type /aaa, i want to do that just once, not looping. After every "Abana avenue" in chat, send "/aaa" ONLY ONCE. i have this cleo
what i tried is replacing "while true" with ":re" and add after last end jump @re
i m not so good at cleo but i think :re is a label. i try what i can find and what i have in mind.. but i can t figured it out
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
IF
0B61: samp is_local_player_spawned
THEN
0AC8: 0@ = allocate_memory_size 260
0AC8: 1@ = allocate_memory_size 260
0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
IF
0C29: $NOT_USED = stristr string1 0@ string2 "Abana avenue"
THEN
0c8f: samp process_chat_input "/aaa" 4@
END
END
END
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
IF
0B61: samp is_local_player_spawned
THEN
0AC8: 0@ = allocate_memory_size 260
0AC8: 1@ = allocate_memory_size 260
0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
IF
0C29: $NOT_USED = stristr string1 0@ string2 "Abana avenue"
THEN
0c8f: samp process_chat_input "/aaa" 4@
END
END
END
i m not so good at cleo but i think :re is a label. i try what i can find and what i have in mind.. but i can t figured it out