[Include] Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions)
#6

Hey.
I had a little problem.
I want to make a inventory-system and i use your include.
i want to list all items in the inventory, and it works. (in dialog)
but i want to "choose" items in the dialog (list-dialog) and i dont know what to do now ... :/

If i press "Z" (KEY_YES) it opens the dialog, and all items are in the list.
pawn Код:
if(newkeys & KEY_YES)
    {
        new
            itemName[30],
            itemDescription[100],
            itemAmount,
            index;
        strdel(DialogString, 0, sizeof(DialogString));
        strcat(DialogString, COLOR_HEX_RED"Item\t\t\t\t\tAnzahl\n");
        while(listInventoryItems(playerid, itemName, itemDescription, itemAmount, index))
        {
            format(DialogString, sizeof(DialogString), COLOR_HEX_WHITE"%s%s\t\t\t%d\n", DialogString, itemName, itemAmount);
            index++;
        }
        ShowPlayerDialog(playerid, DIALOG_INVENTORY, DIALOG_STYLE_LIST, "Inventar", DialogString, "Auswдhlen", "Abbrechen");
    }
But my brain says to me, that i cant script more ( ... ) xD
pawn Код:
case DIALOG_INVENTORY:
{
    if(response)
    {
       
    }
}
can u help me?? ^^
Reply


Messages In This Thread
Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by Cyanide - 04.09.2011, 12:34
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by Phanto90 - 04.09.2011, 12:42
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by WooTFTW - 04.09.2011, 12:45
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by FireCat - 04.09.2011, 12:45
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by Cyanide - 04.09.2011, 12:53
AW: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by 'Pawno. - 20.09.2012, 10:48
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by Devix - 09.10.2012, 10:50
Re : Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by DexX39 - 24.01.2014, 16:47
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by Toxik - 17.02.2014, 11:41
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by MasonSFW - 04.07.2015, 15:46
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by IchNar - 24.08.2017, 17:33
Re: Cyanide's Inventory System (Saving, and Loading Support | Great for Roleplay | Descriptions) - by FuNkYTheGreat - 24.08.2017, 17:41

Forum Jump:


Users browsing this thread: 2 Guest(s)