20.09.2012, 10:48
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.
But my brain says to me, that i cant script more ( ... ) xD
can u help me?? ^^
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");
}
pawn Код:
case DIALOG_INVENTORY:
{
if(response)
{
}
}