How do i add multiple listitems on dialogs while reading from file - 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: How do i add multiple listitems on dialogs while reading from file (
/showthread.php?tid=298435)
How do i add multiple listitems on dialogs while reading from file -
[WSF]ThA_Devil - 20.11.2011
Well. In short saying i meant like this:
will it work if
i create loop what loops trough files
every file has a string in it
and it displays on dialog as listitem...
(i use dini)
Thanks for help...
Re: How do i add multiple listitems on dialogs while reading from file -
Pharrel - 20.11.2011
pawn Код:
new dialogstring[cells], string[cells];
//in your loop for read files:
format(string, cells, "%s\n", dini_Get(bla bla...
strcat(dialogstring, string);
//after read all files
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LISTM, "whatever", dialogstring, ...