31.12.2015, 11:16
Hi i need to compare a string with a item name. How i do this? 
OnPlayerDialog

Code:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Menщ", "first item/nseconditem/nthird item", "Play", "Exit"); return 1;
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
}
}


+rep