17.03.2012, 15:32
(
Последний раз редактировалось Jonny5; 17.03.2012 в 16:41.
)
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
and heres my marco for it
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
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;
}
pawn Код:
#define IsASemi(%0) \
if((%0) == 403 || (%0) == 514 || (%0) == 515 || (%0) == 443){ return 1;}
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