a_samp.inc problems
#1

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

do you have anywhere in your script print or printf?
Reply
#3

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

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

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

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

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

show me ur first 3 includes line
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)