CLEO Help Payday confirmation does not automatically enter the code, Please help me

CLEO related

ntdrankiz

New member
Joined
Jul 10, 2021
Messages
1
Reaction score
0
Location
VietNam
Please take a look and correct the text for me, thanks a lot
It's not just showing the default code, but every time you use the command it will randomly output another code

Code:
{$CLEO .cs}

thread 'AutoPayday'
repeat
    wait 1000
    0A8D: 0@ = readMem 0xA444A0 sz 4 vp 0
until 0@ == 1

0AC8: 0@ = allocate_memory_size 260
0AD3: 0@ = format "Payday Time"
32@ = 0
33@ = 0

while true
    wait 0

    if
        0ADC:   test_cheat "PAYDAY"
    then
        if
            30@ == false
        then
            30@ = true
            0AD1: show_formatted_text_highpriority "AutoPayday ~g~ON" time 1337
            32@ = 0
            33@ = 0   
        else
            30@ = false
            0AD1: show_formatted_text_highpriority "AutoPayday ~r~OFF" time 1337
        end
    end

    if
        30@ == true
    then       
        if
            33@ > 10000
        then
            0AC8: $command = allocate_memory_size 260
            0AD3: $command = format "/payday"
            0AB1: @sendCommand 1 $command
            33@ = 0
        end
        if
            0AB1: @get_dCaption 0 _return: dId 1@
        then
            if
                0AB1: @strcmp 2 String1 0@ String2 1@
            then
                0AB1: @get_dText 0 _return: dText 1@
                0AC8: 2@ = allocate_memory_size 1024
                0AB1: @get_dInput param_count 4 text 1@ FirstCharacter 125 SecondCharacter 123 memory_to_store_characters_as_text 2@
                0AB1: @set_dInput 1 => text 2@
                0AB1: @click_dButton 1 Button 1
                0AC9: free_allocated_memory 2@
            end
        end
    end   
end
:sendCommand
    if 0AA2: 1@ = "samp.dll"
    then
        1@ += 0x69340
        0AA5: call 1@ num_param 1 pop 0 0@
    end
    0AB2: 0
:get_dCaption
    0AA2: 1@ = "samp.dll"
    1@ += 0x2AC9E0
    0A8D: 1@ = readMem 1@ sz 4 vp 0
    0A8E: 2@ = 1@ + 0x28
    0A8D: 2@ = readMem 2@ sz 4 vp 0
    if
        2@ == 1
    then
        0A8E: 3@ = 1@ + 0x40
        0485: dialog_open
        0AB2: ret 1 3@
    else
        059A:  dialog closed
    end
    0AB2: ret 0
:strcmp
    for 7@ = 0 to 1024
        0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
        0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
        0@ += 1
        1@ += 1
        if 003B: 2@ == 3@
        jf break
        if and
        2@ == 0
        3@ == 0
        then
            0485: return_true
            0AB2: 0
        end
    end
    059A: return_false
    0AB2: 0
:get_dText
    0AA2: 1@ = "samp.dll"
    1@ += 0x2AC9E0
    0A8D: 1@ = readMem 1@ sz 4 vp 0
    0A8E: 2@ = 1@ + 0x28
    0A8D: 2@ = readMem 2@ sz 4 vp 0
    if 2@ == 1
    then
        0A8E: 3@ = 1@ + 0x2C
        0A8D: 3@ = readMem 3@ sz 4 vp 0
        if or
        3@ == 0
        3@ == 1
        3@ == 3
        then
            0A8E: 4@ = 1@ + 0x34
            0A8D: 4@ = readMem 4@ sz 4 vp 0
            0485: dialog_open
            0AB2: ret 1 4@
        else 059A:  dialog closed
        end
    end
    0AB2: ret 0
:strlen
    for 1@ = 0 to 1024
        0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
        if not 2@ == 0
        jf break
        0@ += 1
    end
    0AB2: ret 1 1@
:get_dInput
    5@ = false
    6@ = false
    0AB1: @strlen 1 string 0@ return: 31@
    for 30@ = 0 to 31@
        0085: 29@ = 0@
        005A: 29@ += 30@
        0A8D: 28@ = read_memory 29@ size 1 virtual_protect 1
 
        if and
            003B:   28@ == 2@
            5@ == true
        then
            6@ = true
        end
      
        if and
            5@ == true
            6@ == false
        then
            0A8C: write_memory 3@ size 1 value 28@ virtual_protect 1
            3@ += 1
        end
      
        if
            003B: 28@ == 1@
        then
            5@ = true
        end
    end
    0A8C: write_memory 3@ size 1 value 0 virtual_protect 1
    0AB2: ret 0
:set_dInput
    if
        0AA2: 2@ = "samp.dll"
    then
        0A8E: 3@ = 2@ + 0x2AC9E0
        0A8D: 3@ = readMem 3@ sz 4 vp 0
        0A8E: 4@ = 3@ + 0x24
        0A8D: 4@ = readMem 4@ sz 4 vp 0
        0A8E: 5@ = 2@ + 0x85000   
        0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
    end
    0AB2: 0
:click_dButton
    if
        0AA2: 10@ = "samp.dll"
    then
        0A8E: 11@ = 10@ + 0x2AC9E0
        0A8D: 12@ = readMem 11@ sz 4 vp 0
        0A8E: 11@ = 10@ + 0x700D0
        0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ $NOT_USED
    end
    0AB2: 0
 
Top