[SNIPPET] Get Dialog caption

Dialog Caption - 0.3.7 R3
PHP:
0AB1: @GetDialogCaption 0 0@

PHP:
:GetDialogCaption
{
    0.3.7 - R3
}
0AA2: 1@ = "samp.dll"
1@ += 0x26E898
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0

Dialog Caption - 0.3.DL
PHP:
0AB1: @GetDialogCaption 0 0@

PHP:
:GetDialogCaption
{
    0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0
 
Last edited:

truongvi2013

Active member
Joined
May 26, 2016
Messages
82
Reaction score
10
Location
Vietnam
is this offset 0x26E898 working on 0.3DL?
if not,where i can find it?
tried searching on GG.found nothing yet.
 
Top