Dialog help
#1

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?
Reply
#2

The longest you can have is 4096
Reply
#3

I`m using this
On Top of your script:
pawn Код:
new LongMSGBox[1024];
OnGameModeInit/OnFilterScriptInit:
pawn Код:
SetUpLongMSGBox();
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");
Reply
#4

Thanks guys, i bet that thair was over to 8000, but this is enough
Reply
#5

Quote:
Originally Posted by Markx
Посмотреть сообщение
Thanks guys, i bet that thair was over to 8000, but this is enough
No Problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)