#if directive problem
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Didn't you ask a similar question just a few days ago? The compiler cannot calculate the values of fX and fY because they are runtime variables. They are initialized only when the script is run. I recommend you use assert(); this evaluates the expression at runtime and will exit the server with runtime error 1 if the expression evaluates to false.
Oh yes, I did, but this is a different one (not quite, actually)
Anyways, I tried what you said:
pawn Код:
new fX = InfoBox[boxid][iX];
    new fY = InfoBox[boxid][iY];
    new s = fX - fY;   
    #assert s < 71
Gives me an error even if I equated fX = 240 and fY = 220.
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)