How to log command usages
#4

Quote:
Originally Posted by eesh
Посмотреть сообщение
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
        if(success) 
        {
                new name[32];
                GetPlayerName(playerid, name, 32);
                printf("%s performed command %s", name, cmdtext);
                return 1;
        }
        return 1;
}
Put this somewhere in the end. Easier than what the guy above posted.
huh, read again sir
Quote:
Originally Posted by Tamer T
Посмотреть сообщение
I don't want it to printf as the server log gets very huge. I want it to log them on another notepad file.
Reply


Messages In This Thread
How to log command usages - by Tamer - 06.01.2013, 10:26
Re: How to log command usages - by park4bmx - 06.01.2013, 10:36
Re: How to log command usages - by eesh - 06.01.2013, 10:53
Re: How to log command usages - by park4bmx - 06.01.2013, 10:56
Re: How to log command usages - by eesh - 06.01.2013, 10:59
Re: How to log command usages - by Tamer - 06.01.2013, 11:04
Re: How to log command usages - by Mr.Anonymous - 06.01.2013, 11:07
Re: How to log command usages - by Tamer - 06.01.2013, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)