hi how to edit my inventor show code to dialog_style_tablist_headers??
THANK YOU AND RESPECT!!
CODE
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;
}