[HELP] Macro.
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
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.
No, it's expensive macro, will make a replacement. See:
pawn Код:
forward @FuncTest(playerid, string[]);
public @FuncTest(playerid, string[]) {
    CallRemoteFunction(#FuncTest, "is", playerid, string[]); //And what will replace it is with '[]' thus giving the compilation error!
}
forward FuncTest(playerid, string[]);
public FuncTest(playerid, string[]) {
    printf("%i %s", playerid, string);
    return 1;
}
After going to be built exactly this way.

@Edit

About the number of parameters does not affect anything, since starting the third parameter will be all in 2%. Test it this way and true that there is no problem with that:

pawn Код:
Test(FuncTest, "i", playerid) { //Compile
    printf("%i", playerid);
    return 1;
}

Test(FuncTest, "s", string[]) { //Does not Compile
    printf("%s", string);
    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)