DIALOG_STYLE_TABLIST_HEADERS
#1

Hi people! how to edit script dialog_style_tablist_headers formatum?

THANK YOU!!


format( msg, 128,"DB\t\tName");


DB AND NAME WERE

code:
Код:
stock ShowItems(playerid)
{
	new msg[128],dialogstr[3000],bool:c;
	format( msg, 128,"DB\t\tName");
	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","No");
	else SendClientMessage( playerid, -1, "Empty slot" );
	return 1;
}
Reply
#2

Not sure what you're asking but here's an example of DIALOG_STYLE_TABLIST_HEADERS.

(You have DIALOG_STYLE_LIST in ShowPlayerDialog FYI.)

Код:
strcat(principal_str, "Caller\tLocation\t\n");  

for(new i = 0; i < sizeof(911Data); i++) 
{ 
    if(911Data[i][callExists]) 
    { 
		format(sub_str, sizeof(sub_str), "%s\t%s\t\n", 911Data[i][callerName], 911Data[i][callLocation]); 
            strcat(principal_str, sub_str); 
     }
}
Reply
#3

I'm sorry i do not understand. Do you know how to do it on my script?
Reply
#4

Please help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)