Line too long
#3

My way of dealing with long dialogs is making an array for each long dialog like this :
pawn Код:
new VIPHelpDialog[][] =
{
    "{FF0000}Q : What Is VIP ? And What Does It Mean\n{FFFFFF}A : VIP Is A Group Of Important People And VIP Means (Very Important People)\n\n",
    "{FF0000}Q : How Can I Be A VIP ? Do I Need To Pay ?\n{FFFFFF}A : In Order To Become A VIP You Need To Reach 1000 Kills And It Is Completly Free\n\n",
    "{FF0000}Q : What Is Special In Being A VIP ?\n{FFFFFF}A : VIP's Have Their Own Personal Chat They Are More Respcted Then Normal\n",
    "{FFFFFF}Players And They Have Their Own Base Which They Can Gather In With Personal\n{FFFFFF}Cars More Features Are Coming In The Next Releases\n\n",
    "\n{FF8000}Notes : \n\n\t\t{FFFF00}- Same Server Rules Applies To VIP Members (/rules)\n\n",
    "\t\t{FFFF00}- If A Player Gives A VIP Member A Cookie They VIP Will\n\t\t{FFFF00}Get A (+5) Cookie Unlike Normal Players Which They Get\n\t\t{FFFF00}(+1) If Someone Gives Them A Cookie\n\n\n\n\n",
    "\n{FF8000}Commands : \n\n\t\t{FFFF00}- /afk (Will Teleport You To The VIP Longue)\n\t\t{FFFF00}- /(v)ip (To Talk In The VIP Chat)\n\n\n\n"
};
Then before showing the dialog i format it like this :
pawn Код:
new Str[1500];
    format(Str, sizeof(Str), "%s%s%s%s%s%s%s", VIPHelpDialog[0], VIPHelpDialog[1], VIPHelpDialog[2], VIPHelpDialog[3], VIPHelpDialog[4], VIPHelpDialog[5], VIPHelpDialog[6]);
Then finally show the dialog :
pawn Код:
ShowPlayerDialog(playerid, DIALOG_VIP_HELP, DIALOG_STYLE_MSGBOX, "VIP Help", Str, "Close", "");
Reply


Messages In This Thread
Line too long - by cotyzor - 09.09.2012, 07:56
Re: Line too long - by Eric - 09.09.2012, 07:59
Re: Line too long - by Glint - 09.09.2012, 08:19
Re: Line too long - by playbox12 - 09.09.2012, 08:22
Re: Line too long - by Glint - 09.09.2012, 08:24
Re: Line too long - by cotyzor - 10.09.2012, 17:09
Re: Line too long - by cotyzor - 11.09.2012, 07:14
Re: Line too long - by clarencecuzz - 11.09.2012, 07:23

Forum Jump:


Users browsing this thread: 1 Guest(s)