19.12.2013, 21:11
I have an example FS
Question is how can i call ABC:LOL(playerid) via CallLocalFunction("xyz_"#LOL, "i", 345); ?
it doesn't call, what i must change or it's possible ?
pawn Код:
#define ABC:%1(%2) \
forward xyz_%1(%2); \
public xyz_%1(%2)
#define LOL 2
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/asd",true))
{
print("xyz_"#LOL);
CallLocalFunction("xyz_"#LOL, "i", 345);
return 1;
}
return 0;
}
ABC:LOL(playerid)
{
printf("Called: %d",playerid);
return 1;
}
it doesn't call, what i must change or it's possible ?