SA-MP Forums Archive
Dialog Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Error (/showthread.php?tid=162241)



Dialog Error - MWF2 - 22.07.2010

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;
}



Re: Dialog Error - Vince - 22.07.2010

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.


Re: Dialog Error - Carlton - 22.07.2010

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;
}



Re: Dialog Error - MWF2 - 22.07.2010

Thank you, fixed my problem.