[Help] Warning
#1

Line:
Код:
if(ALLOWINT == 1)dini_IntSet(File(playerid), "Interior", 0);
define:
Код:
#define ALLOWINT 1
Warning:
Код:
D:\gta san andreas online\Godfucker\My Fs\oPos\oPos.pwn(18) : warning 206: redundant test: constant expression is non-zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#2

You need to use it like this.

pawn Код:
#if defined ALLOWINT
dini_IntSet(File(playerid), "Interior", 0);
#endif
Reply
#3

You are checking if ALLOWINT is 1, but you just defined ALLOWINT as 1
Reply
#4

I'm pretty sure its because you're checking if 1 == 1, maybe try making it a bool, so you can do like

new bool:ALLOWINT = true;

if(ALLOWINT) // Allow
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)