CLEO Help DialogClose

CLEO related
Status
Not open for further replies.

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
can anyone make this dialogue close when created because it creates every payday or every hour and just needs to be automatic as soon as it detects to close it you have the image below

P.S sorry for bad english
 

batonkal

Active member
Joined
May 6, 2017
Messages
100
Reaction score
16
Location
Bosnia and Herzegovina
{$CLEO .cs}
0000: NOP

if
0B4C: samp is_dialog_active -1
then
alloc 0@ 512
0BD8: samp get_dialog_caption 0@
if
0AD4: $NOT_USED = scan_string 0@ format "Bankarski izvestaj"
then
0B47: samp close_current_dialog_with_button 0
end
end

end

Nesto ovako
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
@batonkal ne bih rekao nesto ne valja probao sam i ne gasi ga ako te ne mrzi da pokusas drugacije ako ne nema veze odg ce neko drugi hvala u svakom slucaju :)
 

Ravenous

Active member
Joined
Jan 21, 2016
Messages
61
Reaction score
4
Code:
{$CLEO}
{$INCLUDE SF}

0000:
repeat
wait 0
until samp.Available()


while true
wait 0
alloc 1@ 256

    if
    0B4C:  samp is_dialog_active -1
    then
    0C11: memset destination 1@ value 0 size 256
    0BD8: samp get_dialog_caption 1@
        if
        0C18: $NOT_STRING = strstr string1 1@ string2 "Bankarski izvestaj"
        then
        0B47: samp close_current_dialog_with_button 1
        end
    end
free 1@
end
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,131
Solutions
5
Reaction score
884
Location
Lithuania
Every help or request writer's...

When you expect get help..
1. Write clearly and understandable
2. Make sure you put good example or explained clearly.
3. Make sure you writed which samp version you use [IMPORTANT].
4. Do not break forum rule!!

If you use samp decompile we must know that.
Bye, i just come for one sec.
 
Status
Not open for further replies.
Top