error 075: input line too long (after substitutions)
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;
}
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. |
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;
}