Help Dialog with button "Next"

Joined
Aug 31, 2018
Messages
5
Likes
0
Points
1
1
#1
Hello. I want to make a cleo mod with this script to make a dialog where you can choose more options but at one option I need to make it in 2 dialogs and I want to know if I can make a Next button for it.

This is used script:

end
if
0B3C: samp is_dialog_responded id 1016 button [email protected] list_item [email protected] input_text 0
then

if and
[email protected] == 1 // Pressed = 1
[email protected] == 0 // List item number
then
0AC6: [email protected] = label @cars1 offset
0B3B: samp show_dialog id 1017 caption "{00ff99}[HELP] {FFFFFF}Dialog" text [email protected] button_1 "Close" button_2 "" style 0
end

I want to put at button_2 "Next" but how I make the button Next to get me to another dialog?
Thanks very much.
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
983
Likes
73
Points
43
Location
Lithuania
Website
ugbase.eu
10
#2
PHP:
{$CLEO .cs}

0000: NOP
 
 
REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "DLG" // PRESS KEYS - DLG
THEN
    0AC6: [email protected] = label @FIRST_DIALOG_TEXT offset
    0B3B: samp show_dialog id 1000 caption "DIALOG" text [email protected] button_1 "OK" button_2 "NEXT" style 0
END

IF // FIRST DIALOG
0B3C: samp is_dialog_responded id 1000 button [email protected] list_item [email protected] input_text 0
THEN
    
    IF
    [email protected] == 1 // 0 = NEXT , 1 = OK
    THEN
        PRINTF "~W~ YOU JUST PRESSED 'OK' BUTTON" 1337
    END
    
    IF
    [email protected] == 0 // 0 = NEXT , 1 = OK
    THEN
        0AC6: [email protected] = label @SECOND_DIALOG_TEXT offset
        0B3B: samp show_dialog id 1001 caption "DIALOG" text [email protected] button_1 "OK" button_2 "NEXT" style 0
    END
END

IF // SECOND DIALOG
0B3C: samp is_dialog_responded id 1001 button [email protected] list_item [email protected] input_text 0
THEN
    IF
    [email protected] == 0 // 0 = NEXT , 1 = OK
    THEN
        PRINTF "~W~ wORKINGGGGGGG.................." 1337
    END
END
    
END

:FIRST_DIALOG_TEXT
HEX
"You reading FIRST dialog text..." 0
END

:SECOND_DIALOG_TEXT
HEX
"You reading SECOND dialog text..." 0
END
 
OP
OP
C
Joined
Aug 31, 2018
Messages
5
Likes
0
Points
1
1
#3
PHP:
{$CLEO .cs}

0000: NOP


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "DLG" // PRESS KEYS - DLG
THEN
    0AC6: [email protected] = label @FIRST_DIALOG_TEXT offset
    0B3B: samp show_dialog id 1000 caption "DIALOG" text [email protected] button_1 "OK" button_2 "NEXT" style 0
END

IF // FIRST DIALOG
0B3C: samp is_dialog_responded id 1000 button [email protected] list_item [email protected] input_text 0
THEN
   
    IF
    [email protected] == 1 // 0 = NEXT , 1 = OK
    THEN
        PRINTF "~W~ YOU JUST PRESSED 'OK' BUTTON" 1337
    END
   
    IF
    [email protected] == 0 // 0 = NEXT , 1 = OK
    THEN
        0AC6: [email protected] = label @SECOND_DIALOG_TEXT offset
        0B3B: samp show_dialog id 1001 caption "DIALOG" text [email protected] button_1 "OK" button_2 "NEXT" style 0
    END
END

IF // SECOND DIALOG
0B3C: samp is_dialog_responded id 1001 button [email protected] list_item [email protected] input_text 0
THEN
    IF
    [email protected] == 0 // 0 = NEXT , 1 = OK
    THEN
        PRINTF "~W~ wORKINGGGGGGG.................." 1337
    END
END
   
END

:FIRST_DIALOG_TEXT
HEX
"You reading FIRST dialog text..." 0
END

:SECOND_DIALOG_TEXT
HEX
"You reading SECOND dialog text..." 0
END
Hello, Thanks for the reponse but I have a problem.
I own a mod with 2 tabels with dialogs in and at the 3rd(this) It open the tabel but when you choose an option nothing happen and close the dialog.
Can I got some help please, I am a newbie and don't know how to finish it.
At 3rd tabel I need 12 options but only one option need Next button, how I do? Thanks very much.
 
Top