SA-MP Forums Archive
DIALOG_STYLE_ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DIALOG_STYLE_ (/showthread.php?tid=639068)



DIALOG_STYLE_ - BrnX - 11.08.2017

how to edit the script, an DIALOG_STYLE_TABLIST_HEADERS??

DIALOG_STYLE_TABLIST_HEADERS = DB and Name. Please.
SCRIPT:
Код:
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],"None"))
	    {
	        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,"Select","Cancel");
	else SendClientMessage( playerid, -1, "No Items" );
	return 1;
}



Re: DIALOG_STYLE_ - saffierr - 11.08.2017

What? I don't get the question?