SA-MP Forums Archive
help, allow menu to scroll insted of doing 50 pages? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help, allow menu to scroll insted of doing 50 pages? (/showthread.php?tid=250370)



help, allow menu to scroll insted of doing 50 pages? - HondaCBR - 23.04.2011

hello im doing gui menu and how can i allow the menu to scroll? when i input couple of lines the map wont compile becuase of dialog too long, but i saw on a server this: /imageshack/img263/9291/guii.png so how can i do that? thx


Re: help, allow menu to scroll insted of doing 50 pages? - Tee - 23.04.2011

pawn Код:
strcat(string,"/help\n/cmds\n/teles\netc");//Just put the commands then a new line. Like /help\n\cmds
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_LIST,"Choose one of the following",string,"Select","Cancel");
You will need a string the with a large array size of that like
pawn Код:
new string[210];
What strcat does is to combine strings, that is how i understand it so with a large enough string and strcat you can do that. Sorry I could not explain more, I am on a hurry.

\n = new line.

Strcat You can make large welcome notes with it also.


FIXED - HondaCBR - 23.04.2011

thx fixed