Defines
#3

Quote:
Originally Posted by Justas [SiJ
]
hey,
I have this in my script:
pawn Code:
#define AdMsg 1; //At the top

//This doesn't work:
public FoundBug(playerid) //Timer
{
    if(strcmp(AdMsg,"1",true)==0) //Error
    {
        //MSG
    }
    else if(strcmp(AdMsg,"2",true)==0) //Error
    {
            //MSG
    }
    else if(strcmp(AdMsg,"3",true)==0) //Error
    {
            //MSG
    }
}
And I get these errors:

error 017: undefined symbol "AdMsg"
error 017: undefined symbol "AdMsg"
error 017: undefined symbol "AdMsg"

I also tried
pawn Code:
if(AdMsg == 1)
but it still doesn't work..
I get these warnings:

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

On same lines as before
Reply


Messages In This Thread
Defines - by SiJ - 21.07.2009, 10:56
Re: Defines - by Weirdosport - 21.07.2009, 11:00
Re: Defines - by SiJ - 21.07.2009, 11:02
Re: Defines - by woot - 21.07.2009, 11:03
Re: Defines - by Weirdosport - 21.07.2009, 11:05
Re: Defines - by SiJ - 21.07.2009, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)