Dialog help - 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: Dialog help (
/showthread.php?tid=249350)
Dialog help -
Markx - 18.04.2011
Hey all, so i was in GamerX server, and thay got dialogs, and the text is really long! Its like string[10000]
How to do that?
Re: Dialog help -
Joe Staff - 18.04.2011
The longest you can have is 4096
Re: Dialog help -
HyperZ - 18.04.2011
I`m using this

On Top of your script:
OnGameModeInit/OnFilterScriptInit:
Somewhere in your script:
pawn Код:
SetUpLongMSGBox()
{
LongMSGBox = "Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla\nBla Bla Bla Bla Bla Bla Bla :D :D :D";
return 1;
}
Dialog:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Title" ,LongMSGBox, "button 1", "button2");
Re: Dialog help -
Markx - 18.04.2011
Thanks guys, i bet that thair was over to 8000, but this is enough
Re: Dialog help -
HyperZ - 18.04.2011
Quote:
Originally Posted by Markx
Thanks guys, i bet that thair was over to 8000, but this is enough 
|
No Problem.