input line too long (after substitutions)
#1

help me please u.u
pawn Код:
if(dialogid == CMDS_INFO)
    {
        if(response)
        {
            if(listitem == 0)
            {
                    ShowPlayerDialog(playerid, CMDS_INFO+1, DIALOG_STYLE_MSGBOX,
                    "{33CCFF}General Command:",
                    "{FFFFFF}/pm - {bcbcbc}Send a private message to a player\n\
                     {FFFFFF}/lockpm - {bcbcbc}Block private messages\n\
                     {FFFFFF}/admins - {bcbcbc}Show all online administrator\n\
                     {FFFFFF}/perks - {bcbcbc}Multiple functions requiring EXP\n\
                     {FFFFFF}/sm - {bcbcbc}Send money to another player\n\
                     {FFFFFF}/hitmarker - {bcbcbc}See the damage to the player attacks\n\
                     {FFFFFF}/report - {bcbcbc}Report a player with administrators\n\
                     {FFFFFF}/anim - {bcbcbc}Show all animation command"
,
                     "Back", "");
            }
            if(listitem == 1)
            {
                    ShowPlayerDialog(playerid, CMDS_INFO+2, DIALOG_STYLE_MSGBOX,
                    "{33CCFF}//General\n\
                     {FFFFFF}/rob - {bcbcbc}Rob a player\n\
                     {FFFFFF}/rape - {bcbcbc}Infect a player\n\
                     {FFFFFF}/tie - {bcbcbc}Tying a player\n\
                     {FFFFFF}/untie - {bcbcbc}Un-tying a player\n\
                     {FFFFFF}/shop - {bcbcbc}Buy in supa\n\
                     {33CCFF}//Terrorist\n\
                     {FFFFFF}/plantc4 - {bcbcbc}Explode in 'Y' key\n\
                     {33CCFF}//Weapon Dealer\n\
                     {FFFFFF}/sellgun - {bcbcbc}Selling arms to a player\n\
                     {33CCFF}//Hitman\n\
                     {FFFFFF}/hitlist - {bcbcbc}Show player with contract\n\ //error 075: input line too long (after substitutions)
                     {FFFFFF}/tracker - {bcbcbc}Locate a player (soon)\n\",
                     "
Back", "");
            }
        }
    }
Reply
#2

Use STRCAT to concatenate the big string into a variable, then use this variable on ShowPlayerDialog.
Reply
#3

o.o strcat ,could help me please, first I will use it not as :'c
Reply
#4

pawn Код:
new string[512];
format(string, 512, "{33CCFF}//General\n");
strcat(string, "{FFFFFF}/rob - {bcbcbc}Rob a player\n");
strcat(string, "{FFFFFF}/rape - {bcbcbc}Infect a player\n");
strcat(string, "{FFFFFF}/tie - {bcbcbc}Tying a player\n");
strcat(string, "{FFFFFF}/untie - {bcbcbc}Un-tying a player\n");
strcat(string, "{FFFFFF}/shop - {bcbcbc}Buy in supa\n");
strcat(string, "{33CCFF}//Terrorist\n");
strcat(string, "{FFFFFF}/plantc4 - {bcbcbc}Explode in 'Y' key\n");
strcat(string, "{33CCFF}//Weapon Dealer\n");
strcat(string, "{FFFFFF}/sellgun - {bcbcbc}Selling arms to a player\n");
strcat(string, "{33CCFF}//Hitman\n");
strcat(string, "{FFFFFF}/hitlist - {bcbcbc}Show player with contract\n");
strcat(string, "{FFFFFF}/tracker - {bcbcbc}Locate a player (soon)\n");
ShowPlayerDialog(playerid, CMDS_INFO+2, DIALOG_STYLE_MSGBOX, "Info", string, "Back", "");
Reply
#5

i love thanks arakuta and erminpr0 <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)