CLEO Help SAMPFUNCS | DIALOG_LIST create new section

CLEO related
Status
Not open for further replies.

Sunny_Forelli

Active member
Joined
May 13, 2013
Messages
85
Reaction score
0
Hi. I'm kinda stucked.
Can anybody tell me how to code a new section in this dialog style?

I tried this right here:
Code:
SAMP.ShowDialog(2, "Title", "Sprunk\nBeer\nWine", "OK", "Close", DIALOG_STYLE_LIST)

But this is the result:
n7hqxrqq.png



thx!
 

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,116
Reaction score
167
"\n"'s get processed by the pawn precompiler (the reason why everywhere you see an \n as newline").

The \n is bascially 0x0A.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
0AC6: 0@ = label @TEXT offset 
SAMP.ShowDialog(2, "Title", 0@, "OK", "Close", DIALOG_STYLE_LIST)

:TEXT
hex
"BEER" 0A
"WINE" 0A
"BLOOD" 0A
"JUICE" 0A
"SPERM" 00
end

0A = new line
00 = end
 
Status
Not open for further replies.
Top