CLEO Help Dialog with button "Next"

CLEO related
Status
Not open for further replies.

cheetahftw1

Active member
Joined
Aug 31, 2018
Messages
39
Reaction score
0
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 21@ list_item 22@ input_text 0
then

if and
21@ == 1 // Pressed = 1
22@ == 0 // List item number
then
0AC6: 20@ = label @cars1 offset
0B3B: samp show_dialog id 1017 caption "{00ff99}[HELP] {FFFFFF}Dialog" text 20@ 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

God
Joined
Jan 2, 2017
Messages
3,134
Solutions
5
Reaction score
885
Location
Lithuania
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: 1@ = label @FIRST_DIALOG_TEXT offset
    0B3B: samp show_dialog id 1000 caption "DIALOG" text 1@ button_1 "OK" button_2 "NEXT" style 0
END

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

IF // SECOND DIALOG
0B3C: samp is_dialog_responded id 1001 button 2@ list_item 3@ input_text 0
THEN
    IF
    2@ == 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
 

cheetahftw1

Active member
Joined
Aug 31, 2018
Messages
39
Reaction score
0
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: 1@ = label @FIRST_DIALOG_TEXT offset
    0B3B: samp show_dialog id 1000 caption "DIALOG" text 1@ button_1 "OK" button_2 "NEXT" style 0
END

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

IF // SECOND DIALOG
0B3C: samp is_dialog_responded id 1001 button 2@ list_item 3@ input_text 0
THEN
    IF
    2@ == 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.
 
Status
Not open for further replies.
Top