warning 206: redundant test: constant expression is non-zero
#1

Line : E:\LBRP\gamemodes\LBRP.pwn(29014) warning 206: redundant test: constant expression is non-zero

pawn Code:
if(USE_TEXTDRAW_SET == 2)
How to fix that?
Reply
#2

You (or someone else using the same script) posted about this a few days ago.

Basically, USE_TEXTDRAW_SET is defined as 2, so you're doing:

if(2 == 2)

which is, as the warning says, redundant (useless).

Use #if or change the define to a variable.
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)