Input line too long
#1

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"}
};

Reply
#2

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.
Reply
#3

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

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"}
};

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)