Full texts not being created -
Eminem 2ka9 - 25.03.2013
I do not see what is wrong with the below code, but whatever it's doing, it's making the bottom of my dialog seems a bit odd at the bottom. It appears as
"Rank: [15FF" - But why?
This is a photo:
http://prntscr.com/xqknu
This is my code.
pawn Код:
case RANKS:
{
new rank[128];
strcat(dialog,"{15FF00}Call of Duty - Retribution - {FF0000}Player Ranks{A9C4E4}\n");
strcat(dialog,"\n");
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}1 - %d score - %s\n", RANK1, RANK1NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}2 - %d score - %s\n", RANK2, RANK2NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}3 - %d score - %s\n", RANK3, RANK3NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}4 - %d score - %s\n", RANK4, RANK4NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}5 - %d score - %s\n", RANK5, RANK5NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}6 - %d score - %s\n", RANK6, RANK6NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}7 - %d score - %s\n", RANK7, RANK7NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}8 - %d score - %s\n", RANK8, RANK8NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}9 - %d score - %s\n", RANK9, RANK9NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}10 - %d score - %s\n", RANK10, RANK10NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}11 - %d score - %s\n", RANK11, RANK11NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}12 - %d score - %s\n", RANK12, RANK12NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}13 - %d score - %s\n", RANK13, RANK13NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}14 - %d score - %s\n", RANK14, RANK14NAME);
strcat(dialog, rank);
strcat(dialog,"\n");
ShowPlayerDialog(playerid, D_RANKS, DIALOG_STYLE_MSGBOX, "{15FF00}Server Ranks", dialog, "Next", "Cancel");
}
Re: Full texts not being created -
Avi Raj - 25.03.2013
try this :-
Код:
case RANKS:
{
new rank[128];
strcat(dialog,"{15FF00}Call of Duty - Retribution - {FF0000}Player Ranks{A9C4E4}\n");
strcat(dialog,"\n");
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}1 - %d score - %s\n", RANK1, RANK1NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}2 - %d score - %s\n", RANK2, RANK2NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}3 - %d score - %s\n", RANK3, RANK3NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}4 - %d score - %s\n", RANK4, RANK4NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}5 - %d score - %s\n", RANK5, RANK5NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}6 - %d score - %s\n", RANK6, RANK6NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}7 - %d score - %s\n", RANK7, RANK7NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}8 - %d score - %s\n", RANK8, RANK8NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}9 - %d score - %s\n", RANK9, RANK9NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}10 - %d score - %s\n", RANK10, RANK10NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}11 - %d score - %s\n", RANK11, RANK11NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}12 - %d score - %s\n", RANK12, RANK12NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}13 - %d score - %s\n", RANK13, RANK13NAME);
strcat(dialog, rank);
format(rank, sizeof(rank), "{FF0000}Rank: {15FF00}14 - %d score - %s\n", RANK14, RANK14NAME);
strcat(dialog, rank);
strcat(dialog,"\n");
ShowPlayerDialog(playerid, D_RANKS, DIALOG_STYLE_MSGBOX, "{15FF00}Server Ranks", dialog, "Next", "Cancel");
}
Re: Full texts not being created -
Eminem 2ka9 - 25.03.2013
Nope that doesn't work! Same thing.
This is so odd..
Re: Full texts not being created -
Avi Raj - 25.03.2013
i think this is because of dialog box limit.
it wont get more ranks i think so.
Try dividing it onto 2 dialogs.
Re: Full texts not being created -
Scenario - 25.03.2013
The string you're trying to cram all of that text into has run out of cells.
So, wherever you're defining the "dialog" string, you should up the cell count. From the looks of it, you're going to need ~600 or more cells.
Re: Full texts not being created -
Eminem 2ka9 - 25.03.2013
Hm i saw nothing about strings/cells around near Dialogs.
I will give you everything that's related to the Ranks dialog.
pawn Код:
else if(listitem == 3)
{
ShowDialogHelp(playerid, RANKS);
}
pawn Код:
case D_RANKS:
{
if(response)
{
ShowDialogHelp(playerid, CLASS);
}
else return ShowPlayerDialog(playerid, D_HELP, DIALOG_STYLE_LIST, "{15FF00}Server Help", "{15FF00}General Info {FFFFFF}- /info\n{15FF00}Rules {FFFFFF}- /rules\n{15FF00}Commands {FFFFFF}- /cmds\n{15FF00}Ranks {FFFFFF}- /ranks\n{15FF00}Vehicle Requirements {FFFFFF}- /vehicles\n{15FF00}Special Teams/Classes {FFFFFF}- /Special", "Select", "Cancel");
}
pawn Код:
CMD:ranks(playerid, params[])
{
ShowDialogHelp(playerid, RANKS);
return 1;
}
Ok?
Re: Full texts not being created -
Dubya - 25.03.2013
Go to your script and search for: new dialog
then, change the new dialog[NUMBER_INSIDE]; to new dialog[1024];
Re: Full texts not being created -
Eminem 2ka9 - 25.03.2013
Oh ok! Works now.
Thanks Thour57.
Thanks RealCop228
And thanks Dubya.
Very helpful people!=]