Long substitutions
#1

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

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

Thanks for help. I dont even know the problem with my script
How can I fix that
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)