Have a Big Problem with Dialog
#8

Solution

Where you have the line "Pizza Boy\tSan Fierro\t%.02f" you will need to add a new line followed by the content you wish to add.

When using Dialogs and specifically the DIALOG_STYLE_LIST or DIALOG_STYLE_TABLIST_HEADERS, using \n means new line and a new line makes a new list item.

so to add on to what you had before you may use:
Код:
"Job\tLocation\tDistance\n \
Pizza Boy\tSan Fierro\t%.02f\n \
Dish Washer\tLas Venturas\t%.02f", // Just an example
So what did I add? I added \n to the end of the line to tell the compiler that your working on a list item. Then you fill in each column followed by a \t to separate it.

Just a note: As you can see I put an extra \ at the end of each line, this tells the compiler to ignore the whitespace and continue to treat it as a string, without it if you tried to put content on a new line the compiler would error.
Reply


Messages In This Thread
DELETE - by TYDS - 12.10.2016, 03:03
Re: Have a Big Problem with Dialog - by SickAttack - 12.10.2016, 03:04
Re: Have a Big Problem with Dialog - by TYDS - 12.10.2016, 03:06
Re: Have a Big Problem with Dialog - by SickAttack - 12.10.2016, 03:08
Re: Have a Big Problem with Dialog - by TYDS - 12.10.2016, 03:09
Re: Have a Big Problem with Dialog - by azzerking - 12.10.2016, 03:11
Re: Have a Big Problem with Dialog - by TYDS - 12.10.2016, 03:14
Re: Have a Big Problem with Dialog - by azzerking - 12.10.2016, 03:19

Forum Jump:


Users browsing this thread: 8 Guest(s)