09.09.2012, 08:19
My way of dealing with long dialogs is making an array for each long dialog like this :
Then before showing the dialog i format it like this :
Then finally show the dialog :
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"
};
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]);
pawn Код:
ShowPlayerDialog(playerid, DIALOG_VIP_HELP, DIALOG_STYLE_MSGBOX, "VIP Help", Str, "Close", "");