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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: input line too long (after substitutions) (
/showthread.php?tid=258256)
input line too long (after substitutions) -
Antonio144 - 29.05.2011
Hi ppl
Ok, I get this error
pawn Код:
error 075: input line too long (after substitutions)
on this line
pawn Код:
format(string,sizeof(string),"Blista Compact{CC0000}$%d\nBravura{CC0000}$%d\nBuccaneer{CC0000}$%d\nCadrona{CC0000}$%d\nClover{CC0000}$%d\nClub{CC0000}$%d\nEsperanto{CC0000}$%d\nFeltzer{CC0000}$%d\nFortune{CC0000}$%d\nHermes$%d\nHustler{CC0000}$%d\nMajestic{CC0000}$%d\nManana{CC0000}$%d\nPrevion{CC0000}$%d\nSabre{CC0000}$%d\nStallion{CC0000}$%d\nTampa{CC0000}$%d\nVirgo{CC0000}$%d\n{FF0000}Back",BlistaCompact,Bravura,Buccaneer,Cadrona,Clover,Club,Esperanto,Feltzer,Fortune,Hermes,Hustler,Majestic,Manana,Previon,Sabre,Stallion,Tampa,Virgo);
BlistaCompact,Bravura,Buccaneer,..... after the string are vehicle prices and they are defined like this
pawn Код:
#define BlistaCompact 25000
#define Bravura 35000
#define Buccaneer 45000
#define Cadrona 50000
//etc
I know what the error means but I need that string to have the vehicle prices colored.
Does anybody know how to make that?
Thanks in advance!
Re: input line too long (after substitutions) -
Michael@Belgium - 29.05.2011
I've just had this 10 seconds ago

=> You line is too long
Re: input line too long (after substitutions) -
Ouch_Charlie - 29.05.2011
You have longer lines than the limit (I don't remember the limit) remove some of the lines to fix it.
Edit: LOL @ Michael I just posted at the time when he did
AW: input line too long (after substitutions) -
Nero_3D - 29.05.2011
The limit is 512 character, or around that
just use more formats
pawn Код:
new string[1024];
format(string, sizeof(string), "balbal", balbal);
format(string, sizeof(string), "%sbalbal", string, blabla);
for normal contracting use strcat
Re: input line too long (after substitutions) -
Antonio144 - 29.05.2011
Thanks Nero_3D I will use strcat
I need to learn to explain better, lot of people don't get what I'm saying.