error 047: array sizes do not match, or destination array is too small
#1

Hello,

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;
}
and when I try to use in

Код:
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;
}
I get error 047: array sizes do not match, or destination array is too small
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)