error 075: input line too long (after substitutions)
#1

Код:
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.
Reply
#2

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;

Reply
#3

Same
Reply
#4

Still need help.
Reply
#5

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;

Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)