19.12.2013, 22:08
Quote:
ABC:LOL(playerid)
should be forward xyz_2(playerid); public xyz_2(playerid) we must convert LOL to 2 but i don't know how, and i even don't know it's possible |

Pawn Code
pawn Код:
#include <a_samp>
#define ABC:%1(%2) \
forward xyz_%1(%2); \
public xyz_%1(%2)
main()
{
print("xyz_"#LOL);
CallLocalFunction("xyz_"#LOL, "i", 345);
}
ABC:LOL(playerid)
{
printf("Called: %d",playerid);
return 1;
}
#define LOL \
2
Код:
xyz_LOL Called: 345
Did I? or I am just dreaming?