Defines
#5

pawn Code:
#define AdMsg 1 //At the top

//This doesn't work:
public FoundBug(playerid) //Timer
{
    switch(AdMsg)
    {
        case 1: //msg
        case 2: //msg
        case 3: //msg
    }
}
Looking at your code though, you're always going to get 1. You can't change a define (Well you can using #undef but that's silly). You'd be better off having AdMsg as a variable, that way you can easily change it to another value to alternate between messages.
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: 2 Guest(s)