Dialog problems urghh
#6

Well you can make it by switching listitems for example

Showing the dialog at cmd
Код:
new string[128];
format(string,sizeof(string),"Level 1\nLevel 2\nLevel 3\nLevel 4\nLevel 5\nLevel 6");
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_LISTITEM,"Admin Commands", string,"Okayer","Cancel");
After that at ondialogresponse

Код:
if(dialogid == yourdialogid)
{
    switch(listitem)
    {
        case 0:
        {
         //admin lvl 1 cmds here
        }
        case 1:
        {
        //admin lvl  2 etc 
        }
    }
}
Reply


Messages In This Thread
Dialog problems urghh - by Immortal99 - 17.04.2017, 17:40
Re: Dialog problems urghh - by Astralis - 17.04.2017, 19:26
Re: Dialog problems urghh - by Immortal99 - 17.04.2017, 20:50
Re: Dialog problems urghh - by LazzyBoy - 17.04.2017, 21:03
Re: Dialog problems urghh - by Immortal99 - 17.04.2017, 21:11
Re: Dialog problems urghh - by LazzyBoy - 17.04.2017, 21:18
Re: Dialog problems urghh - by LEOTorres - 17.04.2017, 21:23
Re: Dialog problems urghh - by Immortal99 - 17.04.2017, 21:56
Re: Dialog problems urghh - by Immortal99 - 17.04.2017, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)