19.12.2013, 21:33
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
Slice's Pawn Playground - Result
Try the code I gave you your self using this link: http://slice-vps.nl:7070/
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;
}
Код:
2 CallLocalFunction Worked. Error: read EIO (EIO) The server stopped.