10.11.2017, 19:48
But there's a difference between defining a macro with different arguments that calls a seperate function and a macro that would call itself.
OK:
#define Kick(%1,%2) DelayedKick(%1,%2)
Not OK:
#define Kick(%1,%2) Kick(%1)
#define printf(%1,%2) printf("%s%d",%1,%2)
Make a seperate function for SendClientMessage that has 2 arguments and then use that in the macro.
OK:
#define Kick(%1,%2) DelayedKick(%1,%2)
Not OK:
#define Kick(%1,%2) Kick(%1)
#define printf(%1,%2) printf("%s%d",%1,%2)
Make a seperate function for SendClientMessage that has 2 arguments and then use that in the macro.
Code:
SendClientMessage2(playerid, text[]) SendClientMessage(playerid, 0xFFFFFFFFF, text); #define SendClientMessage(%1,%2) SendClientMessage2(%1,%2)