[HELP] Macro.
#2

I'm not actually sure what it is supposed to do. I spotted one bug straight away. Your calling a function with CallRemoteFunction but it has not yet been forwarded or defined.

EDIT: Also your macro Test is defined as having 3 params you supply 4 in your code.

This wont produce an error but it is still bugged because it's calling a function that does not exist. Problem is i have no idea what your trying to do.
pawn Код:
#define Test(%0,%1,%2) forward @%0(%2); public @%0(%2) { CallRemoteFunction(#%0,#%1,%2); } forward %0(%2); public %0(%2)

Test(FuncTest, "is", playerid)
{
    printf("is", playerid);
    return 1;
}
Reply


Messages In This Thread
[HELP] Macro. - by paulor - 25.06.2012, 15:54
Re: [HELP] Macro. - by iggy1 - 25.06.2012, 16:58
Re: [HELP] Macro. - by paulor - 25.06.2012, 17:11
Re: [HELP] Macro. - by iggy1 - 25.06.2012, 17:14
Re: [HELP] Macro. - by paulor - 25.06.2012, 17:17
Re: [HELP] Macro. - by paulor - 25.06.2012, 17:25
Re: [HELP] Macro. - by paulor - 26.06.2012, 15:11
Re: [HELP] Macro. - by paulor - 26.06.2012, 15:34
Re: [HELP] Macro. - by paulor - 26.06.2012, 15:47
Re: [HELP] Macro. - by paulor - 26.06.2012, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)