Defines
#1

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)
nut it still doesn't work..
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)