CLEO Help Need help

CLEO related
Status
Not open for further replies.

Jacka625

New member
Joined
Jun 9, 2019
Messages
1
Reaction score
0
Hi, what's the problem i don't get why label AutoVartojimas_Zole not working
Code:
{$CLEO}
{$NOSOURCE}
0000:
REPEAT
wait 0
Until 0AFA: is_samp_structures_available

0B34: "atv" @AutoVartojimas
0@ = false

0C6A: 2@ = create_custom_thread_at_label @AutoVartojimas_Zole 0@ 1@

:AutoVartojimas_Hero
While True
wait 0
if and
0@ == TRUE
8B21: not samp is_chat_opened
0AB0:   key_pressed 109
then
say "/vartoti"
wait 100
if
0B4C:  samp is_dialog_active -1
then
0AB1: @FAKE_KEYPRESS_GUI_DOWN 1
wait 0
0B47: samp close_current_dialog_with_button 1
0B47: samp close_current_dialog_with_button 0
wait 11000
say "/giedra"
wait 200
jf @AutoVartojimas_Hero
end
end
END

:AutoVartojimas_Zole
While True
wait 0
If and
0@ == TRUE
8B21: not samp is_chat_opened
0AB0:   key_pressed 107
THEN
say "/vartoti"
wait 100
if
0B4C:  samp is_dialog_active -1
then
0B47: samp close_current_dialog_with_button 1
0B47: samp close_current_dialog_with_button 1
wait 105
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x1E {Enter}
wait 5100
jf @AutoVartojimas_Zole
end
end
END

:FAKE_KEYPRESS
1@ = 0x1E
005A: 1@ += 0@  // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0

:FAKE_KEYPRESS_GUI_DOWN
1@ = 0x28
005A: 1@ += 0@  // (int)
0B49: samp set_current_dialog_list_item 1
0AB2: ret 0

:AutoVartojimas
0B12: 0@ = 0@ XOR TRUE
If
0@ == TRUE
Then
0ACD: show_text_highpriority "~W~Auto Vartojimas: ~G~ON~W~" time 1000
else
0ACD: show_text_highpriority "~W~Auto Vartojimas: ~R~OFF~W~" time 1000
end
CmdRet
 
Status
Not open for further replies.
Top