Trying to do a macro
#2

I've tested this. Not sure if it is what you need:
pawn Код:
#define GetPName(%0,%1) new p_name[50], file[256]; GetPlayerName(%0, p_name, 50); format(file, sizeof(file), %1, p_name)
   
public OnPlayerConnect(playerid)
{
    GetPName(playerid, "UserName: %s");
    printf(file);
    return 1;
}
Will print: UserName: [KO]KillerThriller

Just change the "UserName %s" to Userfile then.


Jeffry
Reply


Messages In This Thread
Trying to do a macro - by [KO]KillerThriller - 08.06.2011, 15:58
Re: Trying to do a macro - by Jeffry - 08.06.2011, 17:41

Forum Jump:


Users browsing this thread: 2 Guest(s)