CLEO Help Need a snippet for 0.3DL

CLEO related

ha.sh

Active member
Joined
Nov 14, 2018
Messages
66
Reaction score
0
Can someone help me for a snippet of send_click_textdraw samp 0.3DL?
 

ha.sh

Active member
Joined
Nov 14, 2018
Messages
66
Reaction score
0
PHP:
:SendTextdrawClick    

{

    0.3.DL

    0BCA: @SendTextdrawClick 1 TextDrawID 0@

}

IF 0AA2: 31@ = "samp.dll"

THEN

    1@ += 0x2ACA24 // SAMP_INFO_OFFSET

    0A8D: 1@ readMem 1@ sz 4 vp 0

    1@ += 0x3DE // SAMP_PPOOLS_OFFSET

    0A8D: 1@ readMem 1@ sz 4 vp 0

    1@ += 0x20 // SAMP_PPOOL_TEXTDRAW_OFFSET

    0A8D: 1@ readMem 1@ sz 4 vp 0

    0@ *= 0x4 // TEXTDRAW_ID * 4

    005A: 1@ += 0@

    0A8D: 2@ = readMem 1@ sz 4 vp 0

    IF 2@ > 0

    THEN

        2@ += 0x6CE30 // SAMP_TEXTDRAW_SENDCLICK

        0A8D: 2@ = readMem 2@ sz 4 vp 0

        IF 2@ > 0

        THEN 0485:  return_true

        ELSE 059A:  return_false

        END

    ELSE 059A:  return_false

    END

END

0AB2: ret 1 2@

I've tried to write it myself, not sure too if that was the right code.

and this happen.

PHP:
[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

Sorry to interrupt you.
 

dev.tntd2k2

Member
Joined
Oct 5, 2020
Messages
19
Reaction score
20
Location
Vietnam
PHP:
:SendTextdrawClick   

{

    0.3.DL

    0BCA: @SendTextdrawClick 1 TextDrawID 0@

}

IF 0AA2: 31@ = "samp.dll"

THEN

    1@ += 0x2ACA24 // SAMP_INFO_OFFSET

    0A8D: 1@ readMem 1@ sz 4 vp 0

    1@ += 0x3DE // SAMP_PPOOLS_OFFSET

    0A8D: 1@ readMem 1@ sz 4 vp 0

    1@ += 0x20 // SAMP_PPOOL_TEXTDRAW_OFFSET

    0A8D: 1@ readMem 1@ sz 4 vp 0

    0@ *= 0x4 // TEXTDRAW_ID * 4

    005A: 1@ += 0@

    0A8D: 2@ = readMem 1@ sz 4 vp 0

    IF 2@ > 0

    THEN

        2@ += 0x6CE30 // SAMP_TEXTDRAW_SENDCLICK

        0A8D: 2@ = readMem 2@ sz 4 vp 0

        IF 2@ > 0

        THEN 0485:  return_true

        ELSE 059A:  return_false

        END

    ELSE 059A:  return_false

    END

END

0AB2: ret 1 2@

I've tried to write it myself, not sure too if that was the right code.

and this happen.

PHP:
[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:07] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:08] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

[05:52:09] Warning(s007): Exception 0xC0000005 at 0x0

Sorry to interrupt you.
Wrong usage and wrong andress
 

ha.sh

Active member
Joined
Nov 14, 2018
Messages
66
Reaction score
0
it crashes (force closed), version 0.3DL


Code:
:sampSendClickTextdraw
{
    0.3.DL
    0BCA: @sampSendClickTextdraw 1 TextDrawID 0@
}
if
    0AA2: 2@ = "samp.dll"
then
    0085: 3@ = 2@
    3@ += 0x2AC9F8
    0A8D: 3@ = readMem 3@ sz 4 vp 1
    0A8E: 4@ = 3@ + 8
    0A8C: writeMem 4@ sz 4 value 0@ vp 0
    0A8E: 5@ = 2@ + 0x70F20
    0AA6: call 5@ struct 3@ num_params 0 pop 0
end
0AB2: 0

[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:55] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:56] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:57] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:58] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:43:59] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:00] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:01] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:02] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:02] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:02] Warning(s007): Exception 0xC0000005 at 0x0
[08:44:02] Warning(s007): Exception 0xC0000005 at 0x0
 

dev.tntd2k2

Member
Joined
Oct 5, 2020
Messages
19
Reaction score
20
Location
Vietnam
it crashes (force closed), version 0.3DL

Example script:
It will click textdraw with ID 0 when press F3
PHP:
{$CLEO}
0000: "+---------------------------------------------------+"
0000: "¦               Credit by dev.tntd2k2               ¦"
0000: "+---------------------------------------------------+"
repeat
    wait 1000
    0A8D: 0@ = readMem 0xC8D4C0 sz 4 vp 0
until 0@ == 9

while true
    wait 0   
    if
        0AB0:   is_key_pressed 114
    then
        0AB1: @sampSendClickTextdraw 1 TextDrawID 0
        wait 250
    end
end

:sampSendClickTextdraw
{
    0.3.DL
    0BCA: @sampSendClickTextdraw 1 TextDrawID 0@
}
if
    0AA2: 2@ = "samp.dll"
then
    0085: 3@ = 2@
    3@ += 0x2AC9F8
    0A8D: 3@ = readMem 3@ sz 4 vp 1
    0A8E: 4@ = 3@ + 8
    0A8C: writeMem 4@ sz 4 value 0@ vp 0
    0A8E: 5@ = 2@ + 0x70F20
    0AA6: call 5@ struct 3@ num_params 0 pop 0
end
0AB2: 0
 

ha.sh

Active member
Joined
Nov 14, 2018
Messages
66
Reaction score
0
Example script:
It will click textdraw with ID 0 when press F3
PHP:
{$CLEO}
0000: "+---------------------------------------------------+"
0000: "¦               Credit by dev.tntd2k2               ¦"
0000: "+---------------------------------------------------+"
repeat
    wait 1000
    0A8D: 0@ = readMem 0xC8D4C0 sz 4 vp 0
until 0@ == 9

while true
    wait 0  
    if
        0AB0:   is_key_pressed 114
    then
        0AB1: @sampSendClickTextdraw 1 TextDrawID 0
        wait 250
    end
end

:sampSendClickTextdraw
{
    0.3.DL
    0BCA: @sampSendClickTextdraw 1 TextDrawID 0@
}
if
    0AA2: 2@ = "samp.dll"
then
    0085: 3@ = 2@
    3@ += 0x2AC9F8
    0A8D: 3@ = readMem 3@ sz 4 vp 1
    0A8E: 4@ = 3@ + 8
    0A8C: writeMem 4@ sz 4 value 0@ vp 0
    0A8E: 5@ = 2@ + 0x70F20
    0AA6: call 5@ struct 3@ num_params 0 pop 0
end
0AB2: 0
still crashes, i'll send my code to your dm, u can check it.
 
Top