[QUESTION]Dialog listitem show/hide ?
#4

Quote:
Originally Posted by Schurman
View Post
when making the dialog, format the string of the dialog. Every time you need a new line, make it add "\n %s"

%s = What you want to add on that line.

EDIT:

Example:

pawn Code:
new dialogString[300];//String size depends on how many records you'll usually have
format(dialogString, 300, "%s", recordStringHere);//Make sure to initialize the dialog string so there isn't an empty line at the top. (Notice how I got rid of the \n at the start.)
for(new i=1; i<numberOfRecords; i++)//Start the for. Make the for start at 1 (the second instance of recordStringHere) because 0 (the first instance of recordStringHere) is already printed at line 2.
{
    format(dialogString, "\n %s", recordStringHere);//Format the string within the for structure.
}
Oh thank you very much! + rep now and can u tell me how to delete listitem?
Reply


Messages In This Thread
[QUESTION]Dialog listitem show/hide ? - by shamortiy - 02.09.2012, 21:24
Re: [QUESTION]Dialog listitem show/hide ? - by Roel - 02.09.2012, 21:30
Re: [QUESTION]Dialog listitem show/hide ? - by SchurmanCQC - 02.09.2012, 21:32
Re: [QUESTION]Dialog listitem show/hide ? - by shamortiy - 02.09.2012, 21:47
Re: [QUESTION]Dialog listitem show/hide ? - by SchurmanCQC - 02.09.2012, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)