Um, i don't really understand how to write that memory address to a cleo files. Can u tell me how?SAMP-API/src/sampapi/0.3.7-R1/CTextDrawSelection.cpp at multiver · BlastHackNet/SAMP-API
A library for interacting with functions, classes and structures of SA-MP client - BlastHackNet/SAMP-APIgithub.com
You can see example how it can be made.
: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@
[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
Wrong usage and wrong andressPHP::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.
can u give me an example for the usage?Wrong usage and wrong andress
Wait a few minute. I will check and post a new thread for thiscan u give me an example for the usage?
and which one the right address?
it crashes (force closed), version 0.3DL
: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
it crashes (force closed), version 0.3DL
{$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.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