CLEO Help help with "Unknown opcode 8B21"

CLEO related
Status
Not open for further replies.

Erlandokaz

Member
Joined
Jun 5, 2018
Messages
9
Reaction score
0
So first of all this is not my code and i do not have any experience in coding at all.
i tried editing this code just to do a command, but it gives me this error. "Unknown opcode 8B21." (even the original script has the same problem) can anyone help? and tell if there is anything wrong that will make this not work. thank yall. dont shame me pls
Code:
{$CLEO .cs}
THREAD "Vartojimas"

if
  8AF7: get_samp_base_to 0@
then
    0A93: end_custom_thread
end
repeat
    wait 400
until 0AFA: is_samp_structures_available


WHILE TRUE
WAIT 0
    if
    0AB0: 114
    THEN
        if
        31@ == 0
        then
        wait 500
        0ACD: show_text_highpriority "Vartojimas ~g~ON~w~" time 1337
        018C: play_sound 1083 at 0.0 0.0 0.0
        31@ = 1
        else
        wait 500
        0ACD: show_text_highpriority "Vartojimas ~r~OFF~w~" time 1337
        018C: play_sound 1084 at 0.0 0.0 0.0
        31@ = 0
        end
    END
    if
    31@ == 1
    then     
        if and
        0AB0:  key_pressed 81
        8B21: not samp is_chat_opened       
        then
        /// Heras
        0AF9: samp say_msg "/vartoti"
        wait 105
        0AB1: @FAKE_KEYPRESS_GUI_DOWN 1
        wait 105
        0AB1: @FAKE_KEYPRESS_GUI_NR1 1 _OFFSET_KEY_ 0x1E {Enter}
        /// Oras
        wait 105
        01B6: set_weather 10
            wait 200
        end
      
        if and
        0AB0:   key_pressed 97
        8B21: not samp is_chat_opened       
        then
        // Žolė
        0AF9: samp say_msg "/vartoti"
        wait 105
        0AB1: @FAKE_KEYPRESS_GUI_NR1 1 _OFFSET_KEY_ 0x1E {Enter}
        // Pašalina cigara rankoje
        wait 105
        0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x1E {Enter}
            wait 200
            
        end                                           
    end
END



// Parastas paspaudimas [Cigarui]
:FAKE_KEYPRESS
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0

// Spamp Gui paspaudimas [Enter]
:FAKE_KEYPRESS_GUI_NR1
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0B47: samp close_current_dialog_with_button 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0

// Spamp Gui paspaudimas [Migtukas žemyn]
:FAKE_KEYPRESS_GUI_DOWN
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0B49: samp set_current_dialog_list_item 1
0AB2: ret 0
 
Status
Not open for further replies.
Top