[MySQL] Input line too long
#2

When I have a string that is too long I usually split it into several pieces and then use strcat to make them into one big string.
pawn Код:
new string[500]; //should be big enough
format(string, sizeof string, "long text 1 here");
strcat(string, "this text will be added to 'string' ");
strcat(string, "this text will be added to the new string (which contains the text above)");
//then here you use "string" instead of your long text (as "string" now contains all the text)
Reply


Messages In This Thread
[MySQL] Input line too long - by Markx - 15.09.2011, 11:34
Re: [MySQL] Input line too long - by Mikkel_Pedersen - 15.09.2011, 11:46
Re: [MySQL] Input line too long - by Vince - 15.09.2011, 11:50
Re: [MySQL] Input line too long - by Markx - 15.09.2011, 11:50
Re: [MySQL] Input line too long - by System64 - 15.09.2011, 11:53
Re: [MySQL] Input line too long - by Markx - 15.09.2011, 11:59
Re: [MySQL] Input line too long - by [Diablo] - 15.09.2011, 12:02
Re: [MySQL] Input line too long - by MP2 - 15.09.2011, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)