Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

DIALOG_STYLE_LIST to DIALOG_STYLE_TABLIST_HEADERS

$
0
0
hi how to edit my inventor show code to dialog_style_tablist_headers??


THANK YOU AND RESPECT!!

CODE
Code:

stock ShowItems(playerid)
{
        new msg[128],dialogstr[3000],bool:c;
        format( msg, 128,"Quantity\t\tName"); <<-- the line to add tablist headers..!!
        strcat(dialogstr,msg);
        for(new i; i<MAX_ITEMS; i++)
        {
            if(!CompareEx(ItemName[playerid][i],"Empty"))
            {
                c = true;
                        format(msg,128,"\n%d\t\t%s",ItemAmount[playerid][i],ItemName[playerid][i]);
                        strcat(dialogstr,msg);
                }
        }
        if(c != false) ShowPlayerDialog(playerid,ITEM_DIALOG,DIALOG_STYLE_LIST,"Inventory",dialogstr,"OK","Close");
        else SendClientMessage( playerid, -1, "(( slot this empty ))" );
        return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>