new catstring[800],
error 075: input line too long (after substitutions)
new string1[200];
new string2[200];
new string3[200];
new string4[200];
new catstring[800];
new string1[200];
new string2[200];
new string3[200];
new string4[200];
format(string1,sizeof(string1),"%s's {FFFFFF}stats",GetName(clickedplayerid));
format(string2, sizeof(string2),"{FFFFFF}%s has {33FF00}%d{FFFFFF} kills and {FF0000}%d{FFFFFF} deaths. \nHe averages {FFFF66}%0.2f {FFFFFF}Kills per Death.", GetName(clickedplayerid),kills,deaths, Float:ratio);
format(string3,sizeof(string3),"\n\n\tAdmin Status: %s{FFFFFF}\n\tAccount Type: %s{FFFFFF}\n\t",AdmRank,AccType);
format(string4,sizeof(string4),"He has {336600}$%d{FFFFFF}.\n\tHe has %d points.\n\tHe also has %d experience points, and %d cookies.\n\tPing: %d ms\n\n%s\n%s\n%s\nIf he is in the cage, he is in for %i seconds.",cash,score,xp,cookies,GetPlayerPing(clickedplayerid), Jailed, Muted, Caged, time);
new catstring[800];
new string1[200];
new string2[200];
new string3[200];
new string4[200];
format(string1,sizeof(string1),"%s's {FFFFFF}stats",GetName(clickedplayerid));
format(string2, sizeof(string2),"{FFFFFF}%s has {33FF00}%d{FFFFFF} kills and {FF0000}%d{FFFFFF} deaths. \nHe averages {FFFF66}%0.2f {FFFFFF}Kills per Death.", GetName(clickedplayerid),kills,deaths, Float:ratio);
format(string3,sizeof(string3),"\n\n\tAdmin Status: %s{FFFFFF}\n\tAccount Type: %s{FFFFFF}\n\t",AdmRank,AccType);
format(string4,sizeof(string4),"He has {336600}$%d{FFFFFF}.\n\tHe has %d points.\n\tHe also has %d experience points, and %d cookies.\n\tPing: %d ms\n\n%s\n%s\n%s\nIf he is in the cage, he is in for %i seconds.",cash,score,xp,cookies,GetPlayerPing(clickedplayerid), Jailed, Muted, Caged, time);
strcat(catstring, string1);
strcat(catstring, string2);
strcat(catstring, string3);
strcat(catstring, string4);
ShowPlayerDialog(playerid, DIALOGNAMEHERE, DIALOG_STYLE_MSGBOX, "Title", catstring, "Close", "");
new catstring[800];
new string1[200];
new string2[200];
new string3[200];
new string4[200];
format(string1,sizeof(string1),"%s's {FFFFFF}stats",GetName(clickedplayerid));
format(string2, sizeof(string2),"{FFFFFF}%s has {33FF00}%d{FFFFFF} kills and {FF0000}%d{FFFFFF} deaths. \nHe averages {FFFF66}%0.2f {FFFFFF}Kills per Death.", GetName(clickedplayerid),kills,deaths, Float:ratio);
format(string3,sizeof(string3),"\n\n\tAdmin Status: %s{FFFFFF}\n\tAccount Type: %s{FFFFFF}\n\t",AdmRank,AccType);
format(string4,sizeof(string4),"He has {336600}$%d{FFFFFF}.\n\tHe has %d points.\n\tHe also has %d experience points, and %d cookies.\n\tPing: %d ms\n\n%s\n%s\n%s\nIf he is in the cage, he is in for %i seconds.",cash,score,xp,cookies,GetPlayerPing(clickedplayerid), Jailed, Muted, Caged, time);
ShowPlayerDialog(playerid, DIALOGNAMEHERE, DIALOG_STYLE_MSGBOX, "Title", catstring, "Close", "");
new str[1024]; // guess this is enough for a too long text
format(str, sizeof(str), "Long text"); // here str = "LongText"
format(str, sizeof(str), "%s Another long text", str); // here str = "Long text Another long text"
format(str, sizeof(str), "%s Last long text", str); // here str = "Long text Another long text Last long text"
You could've done it with ONLY one string.
pawn Code:
|