CLEO Help How to fix it?

CLEO related
Status
Not open for further replies.

VINHDZ

Active member
Joined
Nov 14, 2020
Messages
53
Reaction score
0
Location
viet nam
Hello everyone, I have a question that I hope you can answer and fix. This cleo is activated when the player dies after 2sec will execute the command "/chapnhan chet". Cleo fails like this, when not adding:
if
33 @> 2000
Later ...
it works fine, when i add it, it crashes again (photo 1 not added, photo 2 added)
{$CLEO}
0000: NOP
wait 10000
33@ = 0

while true
wait 0
if
actor.Dead($player_actor)
then
if
33@ > 2000
then

0AC8: 6@ = allocate_memory_size 1024
0AD3: 6@ = format "/chapnhan chet"
0AB1: @PROCESS_CHAT_INPUT 1 InputText 6@
33@ = 0
end
end
:pROCESS_CHAT_INPUT
{
0.3.DL
Ex.:
0AB1: @PROCESS_CHAT_INPUT 1 InputText 0@
}
IF 0AA2: 20@ = "samp.dll"
THEN
0A8E: 21@ = 20@ + 0x2ACA14 // SAMP_CHAT_INPUT_INFO_OFFSET
0A8D: 22@ = readMem 21@ sz 4 vp 0 // pChatInput;
0A8E: 26@ = 22@ + 0x8 // pChatInput->pEditBox;
0A8D: 27@ = readMem 26@ sz 4 vp 0 // pEditBox;

0A8E: 24@ = 20@ + 0x85000 // CDXUTEditBox::SetText

0AA8: call_function_method 24@ struct 27@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@

0A8E: 25@ = 20@ + 0x69410 // PROCESS_INPUT
0AA8: call_function_method 25@ struct 22@ num_params 0 pop 0 _retVal 7@
END
0AB2: 0
 

Attachments

  • 1.png
    1.png
    126.5 KB · Views: 13
  • 2.png
    2.png
    128.1 KB · Views: 12

Juli4n

Active member
Joined
Mar 31, 2021
Messages
43
Solutions
1
Reaction score
19
Location
Argentina
You only need to put "end" at the end of the loop
C#:
{$CLEO}
0000: NOP
wait 10000
33@ = 0

while true
    wait 0
    if
    actor.Dead($player_actor)
    then
        if
        33@ > 2000
        then
            0AC8: 6@ = allocate_memory_size 1024
            0AD3: 6@ = format "/chapnhan chet"
            0AB1: @PROCESS_CHAT_INPUT 1 InputText 6@
            33@ = 0
        end
    end
end

:PROCESS_CHAT_INPUT
{
0.3.DL
Ex.:
0AB1: @PROCESS_CHAT_INPUT 1 InputText 0@
}
IF 0AA2: 20@ = "samp.dll"
THEN
0A8E: 21@ = 20@ + 0x2ACA14 // SAMP_CHAT_INPUT_INFO_OFFSET
0A8D: 22@ = readMem 21@ sz 4 vp 0 // pChatInput;
0A8E: 26@ = 22@ + 0x8 // pChatInput->pEditBox;
0A8D: 27@ = readMem 26@ sz 4 vp 0 // pEditBox;

0A8E: 24@ = 20@ + 0x85000 // CDXUTEditBox::SetText

0AA8: call_function_method 24@ struct 27@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@

0A8E: 25@ = 20@ + 0x69410 // PROCESS_INPUT
0AA8: call_function_method 25@ struct 22@ num_params 0 pop 0 _retVal 7@
END
0AB2: 0
 

VINHDZ

Active member
Joined
Nov 14, 2020
Messages
53
Reaction score
0
Location
viet nam
You only need to put "end" at the end of the loop
C#:
{$CLEO}
0000: NOP
wait 10000
33@ = 0

while true
    wait 0
    if
    actor.Dead($player_actor)
    then
        if
        33@ > 2000
        then
            0AC8: 6@ = allocate_memory_size 1024
            0AD3: 6@ = format "/chapnhan chet"
            0AB1: @PROCESS_CHAT_INPUT 1 InputText 6@
            33@ = 0
        end
    end
end

:PROCESS_CHAT_INPUT
{
0.3.DL
Ex.:
0AB1: @PROCESS_CHAT_INPUT 1 InputText 0@
}
IF 0AA2: 20@ = "samp.dll"
THEN
0A8E: 21@ = 20@ + 0x2ACA14 // SAMP_CHAT_INPUT_INFO_OFFSET
0A8D: 22@ = readMem 21@ sz 4 vp 0 // pChatInput;
0A8E: 26@ = 22@ + 0x8 // pChatInput->pEditBox;
0A8D: 27@ = readMem 26@ sz 4 vp 0 // pEditBox;

0A8E: 24@ = 20@ + 0x85000 // CDXUTEditBox::SetText

0AA8: call_function_method 24@ struct 27@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@

0A8E: 25@ = 20@ + 0x69410 // PROCESS_INPUT
0AA8: call_function_method 25@ struct 22@ num_params 0 pop 0 _retVal 7@
END
0AB2: 0
Thank you for your help. Can someone close this thread for me?
 
Status
Not open for further replies.
Top