Dialog style TABLIST doesn't show columns if second column isnt present in first row - 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 doesn't show columns if second column isnt present in first row (
/showthread.php?tid=612251)
Dialog style TABLIST doesn't show columns if second column isnt present in first row -
dusk - 15.07.2016
Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_TABLIST, "header", "row1\nrow2\tcolum1\now3\tcolum1\nrow4\tcolumn1", "Okay", "No");
This dialog will not show the "column1" at all.
Is this a bug? Is there a solution? Sure it makes more sense to always have the same number of columns, but in some cases second column doesn't need to exist on all rows.
Re: Dialog style TABLIST doesn't show columns if second column isnt present in first row -
Gammix - 15.07.2016
Its like this (looking at your code, it won't even compile)
Re: Dialog style TABLIST doesn't show columns if second column isnt present in first row -
dusk - 15.07.2016
Fixed the code bit.
Re: Dialog style TABLIST doesn't show columns if second column isnt present in first row -
Gammix - 15.07.2016
If you want to have headers, use DIALOG_STYLE_TABLIST_HEADERS.
https://sampwiki.blast.hk/wiki/Dialog_Styles