08.08.2016, 14:25
I use Commands / p shows me up a list of items when a player chooses an object by means of a button , use the switch uses to accept I can not download the object id
Edit
I can not retrieve the object id that the player chosen in the list and I have no idea how to do it - does not work
Edit
Код:
case DIALOG_P:
{
if(!response) return 1;
new item_sscanf_uid, item_sscanf_info[128], itemid;
if(sscanf(inputtext, "ds[128]", item_sscanf_uid, item_sscanf_info))
{
printf("%d ITEMID USE\n", item_sscanf_uid);
return 1;
}
itemid = item_sscanf_uid;
printf("%d ITEMID USE\n", itemid);
UsePlayerItem(playerid, Item[itemid][item_type], Item[itemid][item_uid]);
//ShowPlayerDialog(playerid, DIALOG_P_O, DIALOG_STYLE_LIST, "Item | Options", "Use Item\nInfo\n", "Wybierz", "Anuluj");
return 1;
}

