14.03.2018, 11:25
(
Последний раз редактировалось Zeus666; 14.03.2018 в 12:09.
)
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; }