Adding a text
#1

Hi. I want to add a text to box, but i can't. Pls help I want to add "Target ID's Backpack"





Код:
stock ShowTargetInventory(playerid, targetid)
{
	new str[180];
    if(!IsPlayerNPC(targetid))
    {
		gItemList="";
		for(new item;item<MAX_ITEMS;item++)
		{
			if(!strlen(_GetItemNamePVar(targetid,item))||!_GetItemAmountPVar(targetid,item))continue;
			format(gItemList,sizeof(gItemList),"%s\n%d\t\t%s",gItemList,_GetItemAmountPVar(targetid,item),_GetItemNamePVar(targetid,item));
		}
		format(gItemList,sizeof(gItemList),"%s",gItemList);

		format(str,sizeof(str),""COL_WHITE"%s "COL_GREEN"%i |"COL_WHITE" %i",GetBackpackName(targetid),pInfo[targetid][BackpackSlotsUsed],pInfo[targetid][BackpackSlots]);
		ShowPlayerDialog(playerid,INV_DIALOG_ID,DIALOG_STYLE_LIST,str,gItemList,"Select","Close");
	}
	return 1;
}
Reply


Messages In This Thread
number of arguments does not match definition PLS HELP - by Zeus666 - 14.03.2018, 11:25
Re: Adding a text - by Maximun - 14.03.2018, 11:41
Re: Adding a text - by Zeus666 - 14.03.2018, 11:46
Re: Adding a text - by Maximun - 14.03.2018, 11:56
Re: Adding a text - by Zeus666 - 14.03.2018, 11:58
Re: Adding a text - by Maximun - 14.03.2018, 12:12
Re: Adding a text - by Zeus666 - 14.03.2018, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)