19.11.2017, 15:40
Hello,
I have this function
and when I try to use in
I get error 047: array sizes do not match, or destination array is too small
I have this function
Код:
stock GetItemName(item)
{
new name[30];
switch(item)
{
case 333 .. 372: name = WeaponName[item];
case 19563: name = "Orange Juice";
}
return name;
}
Код:
stock ShowItems(playerid)
{
new list[500], quantity;
for(new x; x < MAX_INVENTORY_ITEMS; x++)
{
format(list, sizeof(list), "%s%s\n", list, BR_GetItemName(inv_items[playerid][x][iObject]));
}
ShowPlayerDialog(playerid, DIALOG_INVENTORY, DIALOG_STYLE_LIST, "Inventory", list, "Select", "Close");
return 1;
}

