08.08.2016, 16:41
I think this is the right what you want. 

PHP код:
case DIALOG_P:
{
if(!response)return 1;
new count;
for(new i;i<sizeof(Item);i++)
{
if(listitem == count)
{
//Item[i][item_type] is the "Item-Type" which is clicked in the dialog.
UsePlayerItem(playerid, Item[i][item_type], Item[i][item_uid]);
break;
}
count ++;
}
}