CLEO Help Selecting Dialog Item

CLEO related
Status
Not open for further replies.

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
So my aim is to select the 1st/2nd/3rd/4rd item of the dialog '/clan' which is a server dialog. The problem is that none of the commands dont work... which im not sure why.. Can anyone help please?
Code:
{$CLEO}
{$INCLUDE SF}
0000:
thread "ClanCMD"

repeat
wait 0
until SAMP.Available()

chatmsg "{ff0000}C{ffaa00}l{ffff00}a{00ff00}n{00ccff}CMD {8258cc}By Kristler" -1
chatmsg "{8258cc}Contact me on forum at [bit.ly/forum_kristler]" -1
chatmsg "{8258cc}Use </clan mod> to start the adventure!" -1

0B34: "clan" @clan

WHILE TRUE
WAIT 0

END

:clan
IF SAMP.IsCommandTyped(20@)
THEN
    IF 0C14: "on" 20@
    THEN
        say "/cmembers"
    ELSE
        IF 0C14: "members" 20@
        THEN
            say "/clan"
            IF SAMP.IsDialogActive(-1)
            THEN
                0B49: samp set_current_dialog_list_item 1
                0B47: samp close_current_dialog_with_button 1
            ELSE
                IF 0C14: "cars" 20@
                THEN
                    say "/clan"
                    IF SAMP.IsDialogActive(-1)
                    THEN
                        0B49: samp set_current_dialog_list_item 4
                        0B47: samp close_current_dialog_with_button 1
                    ELSE
                        IF 0C14: "settings" 20@
                        THEN
                            say "/clan"
                            IF SAMP.IsDialogActive(-1)
                            THEN
                                0B49: samp set_current_dialog_list_item 2
                                0B47: samp close_current_dialog_with_button 1
                            ELSE
                                IF 0C14: "help" 20@
                                THEN
                                    0AC6: 4@ = label @clan_help offset
                                    SAMP.ShowDialog(5555, "Clan HELP", 4@, "Close", "", 0)
                                ELSE
                                    IF 0C14: "mod" 20@
                                    THEN
                                        0AC6: 4@ = label @clan_cmd offset
                                        SAMP.ShowDialog(5556, "Clan CMD", 4@, "Close", "", 0)
                                    END
                                END
                            END
                        END
                    END
                END
            END
        END
    END
END
SAMP.CmdRet()

:clan_help
HEX
END

:clan_cmd
HEX
END
 
Status
Not open for further replies.
Top