#if directive problem
#1

I have got this code:
pawn Код:
#define fX InfoBox[boxid][iX];
    #define fY InfoBox[boxid][iY];
    #if fX - fY > 71
    #error BlaBla
    #endif
So, it gives me the "constant" error.
Is there any way I can do this? I know the defination has to be constant, but I tried making it in different ways without any results.
It would be awesome if someone could help!
Reply


Messages In This Thread
#if directive problem - by RajatPawar - 13.03.2013, 08:10
Re: #if directive problem - by Vince - 13.03.2013, 08:18
Re: #if directive problem - by RajatPawar - 13.03.2013, 08:36
Re: #if directive problem - by Vince - 13.03.2013, 09:58
Re: #if directive problem - by RajatPawar - 13.03.2013, 13:15
Re: #if directive problem - by LarzI - 13.03.2013, 13:19
Re: #if directive problem - by RajatPawar - 13.03.2013, 14:15
Re: #if directive problem - by RajatPawar - 13.03.2013, 14:24
Re: #if directive problem - by RajatPawar - 13.03.2013, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)