macro
#4

I am not really sure why your code didn't worked, I tried it on Slice's Pawn Playground the callback that you tried calling does not get called, maybe because you code differently or something, because people don't often use #(Hashtag) they often use " "(Quotation mark).

This code worked
pawn Код:
#include <a_samp>

#define ABC:%1(%2) \
    forward %1(%2); \
        public %1(%2)

new LoL = 2

main()
{
    printf("%i", LoL);
    CallLocalFunction("LOL", "i", 345);
}

ABC:LOL(playerid)
{
    print("CallLocalFunction Worked.");
    return 1;
}
Slice's Pawn Playground - Result
Код:
2
CallLocalFunction Worked.
Error: read EIO (EIO)

The server stopped.
Try the code I gave you your self using this link: http://slice-vps.nl:7070/
Reply


Messages In This Thread
macro - by Jefff - 19.12.2013, 21:11
Re: macro - by iJumbo - 19.12.2013, 21:24
Re: macro - by Jefff - 19.12.2013, 21:31
Re: macro - by Patrick - 19.12.2013, 21:33
Re: macro - by Jefff - 19.12.2013, 21:47
Re: macro - by Patrick - 19.12.2013, 21:59
Re: macro - by Jefff - 19.12.2013, 22:03
Re: macro - by Patrick - 19.12.2013, 22:08
Re: macro - by Jefff - 19.12.2013, 22:11
Re: macro - by Patrick - 19.12.2013, 22:28

Forum Jump:


Users browsing this thread: 2 Guest(s)