11.02.2010, 05:33
Hey guys! I need to find some way to create a big msgbox...
I tried to do with strings, but it doesn't work.
Now i'm looking for new solution. Can someone show me a way to do BIG messages box (to tutorials in game, infos, help, and more...)?
Here is my code:
it doesn't work and make another dialog like registration/login too...
Help guys! Sorry for my "Brazilian english".. Thanks!
I tried to do with strings, but it doesn't work.
Now i'm looking for new solution. Can someone show me a way to do BIG messages box (to tutorials in game, infos, help, and more...)?
Here is my code:
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/tutorial", true, 9))
{
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_0, DILOAG_STYLE_MSGBOX, "Part 1 - Rules:", "Dont spam\n dont dm\n dont...", "cancel", "next");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new tut1_1[] = "blablablablablablablablablablablablablablablablablablablablablablablabla";
new tut1_2[] = "blablablablablablablablablablablablablablablablablablablablablablablabla";
.......
..
new tut1_5[] = "blablablablablablablablablablablablablablablablablablablablablablablabla";
new tut1[640]; format(tut1, sizeof (tut1), "%s\n%s\n%s\n%s\n%s", tut1_1, tut1_2, tut1_3, tut1_4, tut1_5);
new tut2_1[] = "blablablablablablablablablablablablablablablablablablablablablablablabla";
......
...
new tut2_5[] = "blablablablablablablablablablablablablablablablablablablablablablablabla";
new tut2[640]; format(tut2, sizeof (tut2), "%s\n%s\n%s\n%s\n%s", tut2_1, tut2_2, tut2_3, tut2_4, tut2_5);
if (dialogid == DIALOG_TUTORIAL_0)
{
if (response)
{
// Close tutorial
}
else
{
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_1, DIALOG_STYLE_MSGBOX, "Part 1:", tut1, "previous", "next");
}
}
if (dialogid == DIALOG_TUTORIAL_1)
{
if (response)
{
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_0, DIALOG_STYLE_MSGBOX, "Part 0 - Rules:", "Dont spam\n dont dm\n dont...", "cancel", "next");
}
else
{
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_2, DIALOG_STYLE_MSGBOX, "Part 2:", tut2, "previous", "next");
}
}
if (dialogid == DIALOG_TUTORIAL_2)
{
if (response)
{
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_1, DIALOG_STYLE_MSGBOX, "Part 1:", tut1, "previous", "next");
}
else
{
//next tutorial - DIALOG_TUTORIAL_3 .......
}
}
......
...
..
return 1;
}
Help guys! Sorry for my "Brazilian english".. Thanks!

