SA-MP Forums Archive
suddenly getting warning: redefinition of constant/macro - 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: suddenly getting warning: redefinition of constant/macro (/showthread.php?tid=446242)



suddenly getting warning: redefinition of constant/macro - Donvalley - 25.06.2013

warning 201: redefinition of constant/macro (symbol "isnull(%1)")

on this line:

pawn Код:
#define isnull(%1) \
    ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))



Re: suddenly getting warning: redefinition of constant/macro - Niko_boy - 25.06.2013

may be some of ur include say ZCMD is having it already.
as defined
so do this
pawn Код:
#if !defined
 #define isnull(%1) \
    ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif