25.06.2012, 15:54
(
Последний раз редактировалось paulor; 25.06.2012 в 17:15.
)
I have a problem with macro, I tried many things and so I am here to ask for your help.
The macro is this:
I'm posting only one example of what happens with my macro!
If I do it this way:
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!
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)
If I do it this way:
pawn Код:
Test(FuncTest, "is", playerid, string[]) {
printf("%i %s", playerid, string);
return 1;
}
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!