Anyone know this
#6

[OFFTOPIC]
Instead of forwarding/public for callbacks you can use this:

pawn Код:
#define CB:%0(%1) forward %0(%1); public %0(%1)
So it will be like this:
pawn Код:
CB:GiveBack(playerid)
{
    // Do something
    return 1;
}
instead of
pawn Код:
forward GiveBack(playerid);
public GiveBack(playerid)
{
    // Do something
    return 1;
}
Someone made this before, but idk who anymore. And I am using this for a long time.
Reply


Messages In This Thread
Anyone know this - by Jordan Smith - 05.01.2011, 16:10
Re: Anyone know this - by blackwave - 05.01.2011, 16:33
Re: Anyone know this - by Jordan Smith - 05.01.2011, 16:50
Re: Anyone know this - by blackwave - 05.01.2011, 17:03
Re: Anyone know this - by bertuspiteri - 05.01.2011, 17:16
Re: Anyone know this - by Kwarde - 05.01.2011, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)