SA-MP Forums Archive
One error - 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: One error (/showthread.php?tid=164780)



One error - Typhome - 01.08.2010

Код:
C:\Program Files (x86)\SAMP Server\gamemodes\estprojekt.pwn(3129) : error 075: input line too long (after substitutions)
Код:
format(namem2rkmik, sizeof(namem2rkmik), "Andmed :: %s", name);
Help?


Re: One error - Typhome - 02.08.2010

help?


Re: One error - Typhome - 02.08.2010

bump (topic was in 4 pages)


Re: One error - dice7 - 02.08.2010

One of your lines is longer then 512 characters


Re: One error - Typhome - 02.08.2010

What you mean?

name = defined into 64 ( new name[64]; )

and namem2rkmik is 256. ( new namem2rkmik[256]; )

in 3130 line is:

Код:
format(string, sizeof(string), "[Vanus: %d] [Sugu: %s][Telefoninumber: %d] [Isikukood: %d] [Kodakondsus: %s] \n [KRaha: %d] [PRaha: %d] [Tase: %d] [Respekt: %d/%d] [Mдngutunnid: %d] \n [Annetajatiitel: %s] [Majavхti: %d] [Firmavхti: %d] [Autovхti(1): %d] [Autovхti(2): %d] [Autovхti(3): %d] \n [Tццkoht: %s] [Tiim: %s] [Orginatsioon: %s] [Aste: %d] \n [Uimastid: %d] [Materjalid: %d] [Suurim kala: %d] [Vдlimus: %d] [Interjццr: %d] [Lokaator: %d]", age, atext, pnumber, isikukood, otext, raha, account, level, exp, expamount, ptime, drank, housekey, bizkey, carkey, carkey2, carkey3, jtext, ttext, ftext, rtext, drugs, mats, bigfish, v2limus, intir, virworld); // Dialog of ShowStats



Re: One error - dice7 - 02.08.2010

Your line 3130 is longer then 512 characters, that's why you get the error.
Just do this:
pawn Код:
format(string, sizeof(string), "[Vanus: %d] [Sugu: %s][Telefoninumber: %d] [Isikukood: %d] [Kodakondsus: %s] \n [KRaha: %d] [PRaha: %d] [Tase: %d] [Respekt: %d/%d] [Mдngutunnid: %d] \n [Annetajatiitel: %s] [Majavхti: %d] [Firmavхti: %d] [Autovхti(1): %d] [Autovхti(2): %d] [Autovхti(3): %d] \n [Tццkoht: %s] [Tiim: %s] [Orginatsioon: %s] [Aste: %d] \n [Uimastid: %d] [Materjalid: %d] [Suurim kala: %d] [Vдlimus: %d] [Interjццr: %d] [Lokaator: %d]",
age, atext, pnumber, isikukood, otext, raha, account, level, exp, expamount, ptime, drank, housekey, bizkey, carkey, carkey2, carkey3, jtext, ttext, ftext, rtext, drugs, mats, bigfish, v2limus, intir, virworld); // Dialog of ShowStats



Re: One error - Typhome - 03.08.2010

Quote:
Originally Posted by dice7
Посмотреть сообщение
Your line 3130 is longer then 512 characters, that's why you get the error.
Just do this:
pawn Код:
format(string, sizeof(string), "[Vanus: %d] [Sugu: %s][Telefoninumber: %d] [Isikukood: %d] [Kodakondsus: %s] \n [KRaha: %d] [PRaha: %d] [Tase: %d] [Respekt: %d/%d] [Mдngutunnid: %d] \n [Annetajatiitel: %s] [Majavхti: %d] [Firmavхti: %d] [Autovхti(1): %d] [Autovхti(2): %d] [Autovхti(3): %d] \n [Tццkoht: %s] [Tiim: %s] [Orginatsioon: %s] [Aste: %d] \n [Uimastid: %d] [Materjalid: %d] [Suurim kala: %d] [Vдlimus: %d] [Interjццr: %d] [Lokaator: %d]",
age, atext, pnumber, isikukood, otext, raha, account, level, exp, expamount, ptime, drank, housekey, bizkey, carkey, carkey2, carkey3, jtext, ttext, ftext, rtext, drugs, mats, bigfish, v2limus, intir, virworld); // Dialog of ShowStats
Thanks, but it compiler has comed another new message:

Код:
Header size:           2996 bytes
Code size:           149312 bytes
Data size:          2252492 bytes
Stack/heap size:      16384 bytes; estimated max. usage=11703 cells (46812 bytes)
Total requirements: 2421184 bytes
What this is? Is that bad or what?


Re: One error - (.Aztec); - 03.08.2010

Quote:
Originally Posted by Typhome
Посмотреть сообщение
Thanks, but it compiler has comed another new message:

Код:
Header size:           2996 bytes
Code size:           149312 bytes
Data size:          2252492 bytes
Stack/heap size:      16384 bytes; estimated max. usage=11703 cells (46812 bytes)
Total requirements: 2421184 bytes
What this is? Is that bad or what?
It means your code is using too much processing power. See ******' thread on optimizing your code.


Re: One error - Typhome - 03.08.2010

Quote:
Originally Posted by (.Aztec);
Посмотреть сообщение
It means your code is using too much processing power. See ******' thread on optimizing your code.
What topic link is?


Re: One error - [TDM]Relax - 03.08.2010

2Typhome, https://sampforum.blast.hk/showthread.php?tid=57018