Adding a text
#4

Why, you can't put it by yourself? Which stuff is bothering you in this line?
PHP код:
stock ShowTargetInventory(playeridtargetid)
{
    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 "COL_GREEN"Name Of The Target |"COL_WHITE" %s"GetBackpackName(targetid), pInfo[targetid][BackpackSlotsUsed], pInfo[targetid][BackpackSlots], GetPlayerName(targetid));
        
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: 2 Guest(s)