SA-MP Forums Archive
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: Input line too long (after substitutions) (/showthread.php?tid=448887)



Input line too long (after substitutions) - Sasoft - 06.07.2013

pawn Код:
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2769) : error 075: input line too long (after substitutions)
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2770) : error 037: invalid string (possibly non-terminated string)
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2770) : error 029: invalid expression, assumed zero
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2770) : warning 215: expression has no effect
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2770) : error 001: expected token: ";", but found "]"
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2770) : fatal error 107: too many error messages on one line
pawn Код:
case 0: // Destroy
                    {
                        new string[75], string2[800];
                        format(string, sizeof(string), "Cheques of %s", GetName(playerid));
                        format(string2, sizeof(string2), "[1] ChequeID: %d | Amount: $%d | Signature: %s\n\
                        [2] ChequeID: %d | Amount: $%d | Signature: %s.\n\
                        [3] ChequeID: %d | Amount: $%d | Signature: %s.\n\
                        [4] ChequeID: %d | Amount: $%d | Signature: %s.\n\
                        [5] ChequeID: %d | Amount: $%d | Signature: %s.\n\
                        [6] ChequeID: %d | Amount: $%d | Signature: %s.\n\
                        [7] ChequeID: %d | Amount: $%d | Signature: %s.\n\
                        [8] ChequeID: %d | Amount: $%d | Signature: %s.\n\
>> 2769                                 [9] ChequeID: %d | Amount: $%d | Signature: %s.\n\
>> 2770                                 [10] ChequeID: %d | Amount: $%d | Signature: %s."
,
                        PlayerInfo[playerid][Cheque][0], PlayerInfo[playerid][ChequeAmount][0], PlayerInfo[playerid][Signature1], PlayerInfo[playerid][Cheque][1], PlayerInfo[playerid][ChequeAmount][1], PlayerInfo[playerid][Signature2],
                        PlayerInfo[playerid][Cheque][2], PlayerInfo[playerid][ChequeAmount][2], PlayerInfo[playerid][Signature3], PlayerInfo[playerid][Cheque][3], PlayerInfo[playerid][ChequeAmount][3], PlayerInfo[playerid][Signature4],
                        PlayerInfo[playerid][Cheque][4], PlayerInfo[playerid][ChequeAmount][4], PlayerInfo[playerid][Signature5], PlayerInfo[playerid][Cheque][5], PlayerInfo[playerid][ChequeAmount][5], PlayerInfo[playerid][Signature6],
                        PlayerInfo[playerid][Cheque][6], PlayerInfo[playerid][ChequeAmount][6], PlayerInfo[playerid][Signature7], PlayerInfo[playerid][Cheque][7], PlayerInfo[playerid][ChequeAmount][7], PlayerInfo[playerid][Signature8],
                        PlayerInfo[playerid][Cheque][8], PlayerInfo[playerid][ChequeAmount][8], PlayerInfo[playerid][Signature9], PlayerInfo[playerid][Cheque][9], PlayerInfo[playerid][ChequeAmount][9], PlayerInfo[playerid][Signature10]);
                        ShowPlayerDialog(playerid, DIALOG_CHEQUE_LIST, DIALOG_STYLE_LIST, string, string2, "Rip", "Close");
                    }



Re: Input line too long (after substitutions) - DaRk_RaiN - 06.07.2013

Use Strcat.