SA-MP Forums Archive
Useful Functions - 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: Useful Functions (/showthread.php?tid=299172)



Useful Functions - lordturhan - 24.11.2011

Useful Functions

\pawno\include\uf.inc(43) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")

https://sampwiki.blast.hk/wiki/Useful_Functions

Why?


Re: Useful Functions - CSSI - 24.11.2011

This Means MAX_PICKUPS is already defined Remove any One .


Re: Useful Functions - IceCube! - 24.11.2011

/sign!

Go and open the include look for #define MAX_PICKUPS remove this line!


Re: Useful Functions - lordturhan - 24.11.2011

No i just did to a empty script


Re: Useful Functions - IceCube! - 24.11.2011

Its defined in the include!, Remove the
pawn Код:
#define  MAX_PICKUPS
in the .INC FIle or you have 2 includes defining it open one remove it


Re: Useful Functions - AndreT - 24.11.2011

There's a better solution. Use #undef instead, this will prevent issues if another scripter opens your code with the default includes. Anyone should refrain from changing them.
pawn Код:
#undef MAX_PICKUPS
#define MAX_PICKUPS your_amount