Creating stock only if not difined
#6

His point is to have one define for all stocks, not one define for each function, so you could do stuff like

pawn Код:
mystock function1(params) {
    printf("blablabla");
}

//this one will be ignored
mystock function1(params) {
    printf("albalbalb");
}
As far as i know this isnt possible, as you cant access the function body in a define, so you could only affect the header of the function, but not leave out the whole function.
I also suggest you to avoid redefining function like this again and again. It will get harder to see which function really is used if you got 5 different ones spread over your gamemode and all the includes.
Reply


Messages In This Thread
Creating stock only if not difined - by Swimor - 24.06.2013, 13:02
Re: Creating stock only if not difined - by [MG]Dimi - 24.06.2013, 13:22
Re: Creating stock only if not difined - by MP2 - 24.06.2013, 13:28
Re: Creating stock only if not difined - by Swimor - 24.06.2013, 13:39
Re: Creating stock only if not difined - by [MG]Dimi - 24.06.2013, 13:41
Re: Creating stock only if not difined - by Mauzen - 24.06.2013, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)