[help] making a simple marco
#1

im trying to understand this , so please forgive me

i got a bunch of stocks that i think i should convert to marcos.

first off tell me if theres no advantage to converting these stocks,
and second if you can help me convert 1 stock I can learn from that and do the rest(hopefully) lol

so i got this stock

pawn Код:
stock IsASemi(vid){
    switch(vid)
    {
        case 403,514,515,443:return 1;
    }
    return 0;
}
and heres my marco for it
pawn Код:
#define IsASemi(%0)  \
        if((%0) == 403 || (%0) == 514 || (%0) == 515 || (%0) == 443){ return 1;}
im not sure if i should use the switch case or the if.. statement.
they both do the same thing but having a hard time getting the marco to work

i got this messed up!!
all my other stocks are very similar
so should be easy to convert after i see how this one is done,


thanks for the help
Reply


Messages In This Thread
[help] [sloved] making a simple marco - by Jonny5 - 17.03.2012, 15:32
Re: [help] making a simple marco - by IstuntmanI - 17.03.2012, 16:08
Re: [help] making a simple marco - by Jonny5 - 17.03.2012, 16:20

Forum Jump:


Users browsing this thread: 5 Guest(s)