DIALOG_STYLE_TABLIST_HEADERS - 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_TABLIST_HEADERS (
/showthread.php?tid=640214)
DIALOG_STYLE_TABLIST_HEADERS -
BrnX - 29.08.2017
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;
}
Re: DIALOG_STYLE_TABLIST_HEADERS -
Kane - 29.08.2017
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);
}
}
Re: DIALOG_STYLE_TABLIST_HEADERS -
BrnX - 29.08.2017
I'm sorry i do not understand. Do you know how to do it on my script?
Re: DIALOG_STYLE_TABLIST_HEADERS -
BrnX - 30.08.2017
Please help