Dialog Error
#1

I'm trying to make a dialog. (I've seen many dialogs that are huge) But im having problems.


My dialog is getting this error:

Код:
error 075: input line too long (after substitutions)
If i add anymore then what i have right now.

pawn Код:
if(strcmp(cmdtext, "/status", true) == 0)
{
    new string[256];
    format(string, sizeof(string), "Rob \t\t\t Level %d\nRape \t\t\t Level %d\nTaze \t\t\t Level %d\nArrest \t\t\t Level %d\nHitman \t\t\t Level %d\nCuff \t\t\t Level %d\nFix \t\t\t Level %d\nHeal \t\t\t Level %d\nSurrender \t\t\t Level %d\nS.W.A.T \t\t\t Level %d\nCure \t\t\t Level %d", robberrank[playerid],raperank[playerid],tazerank[playerid],arrestrank[playerid],hitrank[playerid],cuffrank[playerid],fixrank[playerid],healrank[playerid],surrendorrank[playerid],swatrank[playerid],curerank[playerid]);
    ShowPlayerDialog(playerid, 141, DIALOG_STYLE_MSGBOX, "Status:", string, "Ok", "Cancel");
    return 1;
}
Reply
#2

Try to make your 'string' array bigger.
I had the same problem with my textdraws where all the information just wouldn't fit in an array of 256 cells.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Try to make your 'string' array bigger.
I had the same problem with my textdraws where all the information just wouldn't fit in an array of 256 cells.
No, that has nothing to do with it.

Use this.

pawn Код:
if(strcmp(cmdtext, "/status", true) == 0)
{
    new string[256];
    format(string, sizeof(string), "Rob \t\t\t Level %d\nRape \t\t\t Level %d\nTaze \t\t\t Level %d\nArrest \t\t\t Level %d\nHitman \t\t\t Level %d\nCuff \t\t\t Level %d\nFix \t\t\t Level %d\nHeal \t\t\t \
Level %d\nSurrender \t\t\t Level %d\nS.W.A.T \t\t\t Level %d\nCure \t\t\t Level %d"
,
robberrank[playerid],raperank[playerid],tazerank[playerid],arrestrank[playerid],hitrank[playerid],cuffrank[playerid],fixrank[playerid],healrank[playerid],surrendorrank[playerid],swatrank[playerid],curerank[playerid]);
    ShowPlayerDialog(playerid, 141, DIALOG_STYLE_MSGBOX, "Status:", string, "Ok", "Cancel");
    return 1;
}
Reply
#4

Thank you, fixed my problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)