SA-MP Forums Archive
error 075: input line too long (after substitutions) - 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)
+--- Thread: error 075: input line too long (after substitutions) (/showthread.php?tid=630233)



error 075: input line too long (after substitutions) - Pokemon64 - 11.03.2017

Код:
cmd:test(playerid)
{
    new msg[512];
    format(msg,sizeof( msg ), " {FFFFFF}Stop\n\
    {FFFFFF}Listen    {00ff00}First Song | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Second Song | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Third Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Fourth Song | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Fifth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Sixth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Seventh | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Eighth | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Ninth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Tenth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Eleventh Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Twelfth Sond | Listen %i player(-s)", FirstRadio,SecondRadio,ThirdRadio,FourthRadio,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth,Eleventh,Twelfth);
    ShowPlayerDialog( playerid,1, DIALOG_STYLE_LIST, "Radio", msg, "Select", "Exit");
    return 1;
}
I tried with strcat bat idk where i should put these variables.


Re: error 075: input line too long (after substitutions) - TitanX - 11.03.2017

PHP код:
cmd:test(playerid)
{
    new 
msg[512];
    
format(msg,sizeofmsg ), " {FFFFFF}Stop\n\
    {FFFFFF}Listen    {00ff00}First Song | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Second Song | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Third Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Fourth Song | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Fifth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Sixth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Seventh | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Eighth | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Ninth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Tenth Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Eleventh Sond | Listen %i player(-s)\n\
    {FFFFFF}Listen    {00ff00}Twelfth Sond | Listen %i player(-s)"
FirstRadio,SecondRadio,ThirdRadio,\
    
FourthRadio,Fifth,Sixth,Seventh,\
    
Eighth,Ninth,Tenth,Eleventh,Twelfth);
    
ShowPlayerDialogplayerid,1DIALOG_STYLE_LIST"Radio"msg"Select""Exit");
    return 
1;




Re: error 075: input line too long (after substitutions) - Pokemon64 - 11.03.2017

Same


Re: error 075: input line too long (after substitutions) - Pokemon64 - 11.03.2017

Still need help.


Re: error 075: input line too long (after substitutions) - Injury - 11.03.2017

PHP код:
cmd:test(playerid)
{
    static 
msg[1500];
    
msg[0] = EOS;
    
strcat(msg,"{FFFFFF}Stop\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}First Song | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Second Song | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Third Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Fourth Song | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Fifth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Sixth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Seventh | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Eighth | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Ninth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Tenth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Eleventh Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Twelfth Sond | Listen %i player(-s)\n");
    
format(msg,sizeof(msg),msg,FirstRadio,SecondRadio,ThirdRadio,FourthRadio,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth,Eleventh,Twelfth);
    
ShowPlayerDialogplayerid,1DIALOG_STYLE_LIST"Radio"msg"Select""Exit");
    return 
1;




Re: error 075: input line too long (after substitutions) - Pokemon64 - 11.03.2017

Quote:
Originally Posted by Injury
Посмотреть сообщение
PHP код:
cmd:test(playerid)
{
    static 
msg[1500];
    
msg[0] = EOS;
    
strcat(msg,"{FFFFFF}Stop\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}First Song | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Second Song | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Third Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Fourth Song | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Fifth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Sixth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Seventh | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Eighth | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Ninth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Tenth Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Eleventh Sond | Listen %i player(-s)\n");
    
strcat(msg,"{FFFFFF}Listen    {00ff00}Twelfth Sond | Listen %i player(-s)\n");
    
format(msg,sizeof(msg),msg,FirstRadio,SecondRadio,ThirdRadio,FourthRadio,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth,Eleventh,Twelfth);
    
ShowPlayerDialogplayerid,1DIALOG_STYLE_LIST"Radio"msg"Select""Exit");
    return 
1;

Thanks, +REP