macro
#1

I have an example FS

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;
}
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 ?
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: 1 Guest(s)