Dialog menus with y_dialogs??
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)