dialog menu - listitem's name
#1

Hi i need to compare a string with a item name. How i do this?

Code:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Menщ", "first item/nseconditem/nthird item", "Play", "Exit");
return 1;
OnPlayerDialog
Code:
case D_CHARACTERS_MENU:
{
         if(!strcmp(listitem, "first item")) //It don't work because listitem is the item number
    	 {
                         //do this
         }
         else if(!strcmp(listitem, "second item"))
         {
                         //do this
         }
}
Reply


Messages In This Thread
dialog menu - listitem's name - by VincenzoDrift - 31.12.2015, 11:16
Re: dialog menu - listitem's name - by Larceny - 31.12.2015, 11:54
Re: dialog menu - listitem's name - by Stanford - 31.12.2015, 12:12
Re: dialog menu - listitem's name - by VincenzoDrift - 31.12.2015, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)