SA-MP Forums Archive
a_samp.inc problems - 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: a_samp.inc problems (/showthread.php?tid=424528)



a_samp.inc problems - Sweez - 22.03.2013

Hello, when I try to complie my gm pawn gives me this error:


C:\Users\User\Desktop\New folder\pawno\include\a_samp.inc(54) : error 021: symbol already defined: "print"
C:\Users\User\Desktop\New folder\pawno\include\a_samp.inc(55) : error 021: symbol already defined: "printf"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

I knew that it comes from my a_samp.inc, and replaced it with another one, but i still get this error. Can someone help me please ?


Re: a_samp.inc problems - Apenmeeuw - 22.03.2013

do you have anywhere in your script print or printf?


Re: a_samp.inc problems - Scenario - 22.03.2013

You probably have one of the following lines in your mode:

#define print
stock print
public print

AND/OR

#define printf
stock printf
public printf


Re: a_samp.inc problems - Sweez - 22.03.2013

Quote:
Originally Posted by RealCop228
View Post
You probably have one of the following lines in your mode:

#define print
stock print
public print

AND/OR

#define printf
stock printf
public printf
No I don't have any of them.


Re: a_samp.inc problems - Scenario - 22.03.2013

You've re-defined print and printf somewhere in the script...


Re: a_samp.inc problems - Sweez - 22.03.2013

Quote:
Originally Posted by RealCop228
View Post
You've re-defined print and printf somewhere in the script...
No i didn't it appears in all of my scripts. I changed only my server gamemode text.


Re: a_samp.inc problems - Patrick - 22.03.2013

would you mind showing us your script?

OR

try download the new a_samp.inc and try compiling again.

EDIT

Not Recommended
i dont recommend this. but if you got the right code of printf and print
why dont you undefine them?

pawn Code:
#undef printf
#undef print
if your printf and print code is wrong. it might affect your printf and print and causing all of you printf and print will not work


Re: a_samp.inc problems - mastermax7777 - 22.03.2013

show me ur first 3 includes line


Re: a_samp.inc problems - Sweez - 22.03.2013

Quote:
Originally Posted by mastermax7777
View Post
show me ur first 3 includes line
My first 3 includes are:

#include <a_samp>
#include <core>
#include <float>


Re: a_samp.inc problems - Sweez - 22.03.2013

Quote:
Originally Posted by pds2012
View Post
would you mind showing us your script?

OR

try download the new a_samp.inc and try compiling again.
I all ready did that, but i still get the same error. I searched for print and printf in my a_samp.ini but i didnt find. I re-added all of my includes and it still don't work ...