[HELP] Macro.
#1

I have a problem with macro, I tried many things and so I am here to ask for your help.
The macro is this:

pawn Код:
#define Test(%0,%1,%2) forward @%0(%2); public @%0(%2) { CallRemoteFunction(#%0,%1,%2); } forward %0(%2); public %0(%2)
I'm posting only one example of what happens with my macro!
If I do it this way:

pawn Код:
Test(FuncTest, "is", playerid, string[]) {
    printf("%i %s", playerid, string);
    return 1;
}
Of error, because as it is a macro parameter is replace all the past, then the replacement is CallRemoteFuction 'string[]' with this key and that the error, if anyone can help me I'm thankful!

Note: I've read and reread the topic ****** Pre-processor, but did not solve my problems for use with more than one parameter, such as integer, string and floating, so getting harder to fix!

Sorry if you do not understand something of what he said, because I am English and used the ****** translator to help me!
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: 2 Guest(s)