SA-MP Forums Archive
Dialog menus with y_dialogs?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog menus with y_dialogs?? (/showthread.php?tid=651907)



Dialog menus with y_dialogs?? - Greggu - 30.03.2018

Ok, so i wanted to make a simple weapon selection dialog where weapons are divided by category.
I tried using y_dialogs and looked up the tutorial on how to use it, but i'm not sure how to make it so when you click on a category, another dialog shows up with the actual weapons inside such category.

I could just use OnDialogResponse but that is so tedious and time consuming

Код:
cmd:weapon(playerid, params[])
{
    inline Response(pid, dialogid, response, listitem, string:inputtext[])
    {
        #pragma unused pid, dialogid, response, listitem, inputtext
        switch(response)
        {
            
        }
    }
    Dialog_ShowCallback(playerid, using inline Response, DIALOG_STYLE_LIST, "WEP", "guns\nautomatic\nnon-auto\nmelee\nspecial", "select", "exit");
    return 1;
}
Anyone know how i should go about this