This macro definition crashes the compiler with no outcome.
#6

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.

Code:
SendClientMessage2(playerid, text[]) SendClientMessage(playerid, 0xFFFFFFFFF, text);
#define SendClientMessage(%1,%2) SendClientMessage2(%1,%2)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)