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



Input line too long - deimantas1 - 08.12.2014

How I can fix this error:
error 075: input line too long (after substitutions)
error 010: invalid function or declaration
Code:
Quote:

new Name[VALUE][ENUM] =
{
{"afs","gdajgdajkgakfhjsadlghsjagkdjaghjdakjgdahjd gkjsaghjakdjhgadgashjgdgas","gxajkgdasjgsaljd","0. 00000","0.0000","0.0000",\
"gsadd","gasg","0","gadgaggga",\
"gadgdasagdsgdsafdgasgdsagddsagaasdgadgagdasgddgag asdsgsdadgadagsgdada",\
"gaddgasdagsdgdgsadagsdgasdgsagdasdgsa","280, 283, 284, 286, 288, 192","13 - 21","gdaggasdgas","gadsgasgas"}
};




Re: Input line too long - Kaperstone - 08.12.2014

break the text then use format or strcat to merge the two parts by either inserting the text into the array with format or pushing it into the end of the end of the first string.

pawn Код:
new text[13] = "Hello";
strcat(string, " World!");
 
// The string is now 'Hello World!'

Basically the error occurs when one line is longer than 512 characters.
The simple fix for this is to break the text into smaller parts and then joining it into one string.


Re: Input line too long - deimantas1 - 09.12.2014

I know that, but I'm using in array, this.


Re: Input line too long - deimantas1 - 13.12.2014

Update in topic code, now code is:

Quote:

new Name[VALUE][ENUM] =
{
{"afs","gdajgdajkgakfhjsadlghsjagkdjaghjdakjgdahjd gkjsaghjakdjhgadgashjgdgas","gxajkgdasjgsaljd","0. 00000","0.0000","0.0000",\
"gsadd","gasg","0","gadgaggga",\
"gadgdasagdsgdsafdgasgdsagddsagaasdgadgagdasgddgag asdsgsdadgadagsgdada",\
"gaddgasdagsdgdgsadagsdgasdgsagdasdgsa","280, 283, 284, 286, 288, 192","13 - 21","gdaggasdgas","gadsgasgas"}
};