input line too long (after substitutions)
#1

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!
Reply
#2

I've just had this 10 seconds ago
=> You line is too long
Reply
#3

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
Reply
#4

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
Reply
#5

Thanks Nero_3D I will use strcat

I need to learn to explain better, lot of people don't get what I'm saying.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)