Dialog message lenght.
#4

On top:

pawn Code:
new LongDialog [1024];
OnGameModeInit

pawn Code:
SetUpMyText();
Example cmd for long dialog:

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

pawn Code:
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.

Thanks, Please +rep if i helped.
Reply


Messages In This Thread
Dialog message lenght. - by Shetch - 31.08.2011, 20:22
Re: Dialog message lenght. - by Shetch - 31.08.2011, 20:36
Re: Dialog message lenght. - by Vince - 31.08.2011, 20:50
Re: Dialog message lenght. - by Davz*|*Criss - 31.08.2011, 20:51
Re: Dialog message lenght. - by Shetch - 31.08.2011, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)