Dialog style TABLIST doesn't show columns if second column isnt present in first row
#1

Код:
	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.
Reply
#2

Its like this (looking at your code, it won't even compile)

pawn Код:
"Row1\tRow1\n
Row2\tRow2"
Reply
#3

Fixed the code bit.
Reply
#4

If you want to have headers, use DIALOG_STYLE_TABLIST_HEADERS.

https://sampwiki.blast.hk/wiki/Dialog_Styles
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)