Long 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)
+--- Thread: Long substitutions (
/showthread.php?tid=461976)
Long substitutions -
hassantariq73 - 04.09.2013
pawn Код:
C:\Users\****\Desktop\DM\pawno\include\datagram.inc(0) : error 075: input line too long (after substitutions)
C:\Users\****\Desktop\DM\pawno\include\a_sampdb.inc(0) : error 075: input line too long (after substitutions)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
How do I fix it ?
Re: Long substitutions -
Konstantinos - 04.09.2013
Use strcat.
pawn Код:
new
msg[ 500 ] // An example for a large dialog, change it to what you need
;
strcat( msg, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.... AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" );
strcar( msg, "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB.... BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" );
strcar( msg, "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC..... CCCCCCCCCCCCCCCCCCCCCCCCCCCCC" );
Imagine it as a large text, it was just an example!
Re: Long substitutions -
hassantariq73 - 04.09.2013
Thanks for help. I dont even know the problem with my script
How can I fix that
Re: Long substitutions -
Konstantinos - 04.09.2013
Oh! Wait a second. Those errors came from the includes, I thought from your script.
First lines from datagram.inc
pawn Код:
/* Datagram sending/receiving
*
* © Copyright 2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
First lines from a_sampdb.inc
pawn Код:
/* SA-MP Native SQLite Database Functions
*
* © Copyright 2007, SA-MP Team
*
*/
They're all comments.
Are you sure, that you do not miss
/* that starts the comment or something else?
datagram.inc
a_sampdb.inc
Replace the include files with the above links, get the code inside.
If those do not work either..
Re-download the package and paste the includes/plugins/gamemodes/filterscripts and all these.