Creating a looong MsgBox
#9

On top:

pawn Код:
new LongDialog [1024];
OnGameModeInit

pawn Код:
SetUpMyText();
Example cmd for long dialog:

pawn Код:
CMD:longdialog(playerid, params[])
{
    ShowPlayerDialog(playerid,69333, DIALOG_STYLE_MSGBOX,"Long Dialog.",LongDialog, "Okay", "Exit");
    return 1;
}
And anywhere in script:

pawn Код:
SetUpMyText()
{
    LongDialog = "Bla bla bla \n";
    strcat(LongDialog, "Bla bla.\n");
    strcat(LongDialog, "Bla bla.\n");
    return 1;
}
You can go on with long dialogs on strcat.
Reply


Messages In This Thread
Creating a looong MsgBox - by [L3th4l] - 12.08.2010, 06:05
Re: Creating a looong MsgBox - by ikey07 - 12.08.2010, 06:29
Re: Creating a looong MsgBox - by [L3th4l] - 12.08.2010, 06:34
Re: Creating a looong MsgBox - by Dudits - 12.08.2010, 06:45
Re: Creating a looong MsgBox - by Simon - 12.08.2010, 09:19
Re: Creating a looong MsgBox - by HotPlayer - 02.09.2011, 06:46
Re: Creating a looong MsgBox - by Lorenc_ - 02.09.2011, 06:52
Re: Creating a looong MsgBox - by Improvement™ - 02.09.2011, 07:02
Re: Creating a looong MsgBox - by Davz*|*Criss - 02.09.2011, 07:37

Forum Jump:


Users browsing this thread: 5 Guest(s)