[Include] rLogs | Server logs
#1

rLogs | Server Logs

Scripted by Rock

With this include you can save anything from your server in a log with just one line of code!
Base syntax of this functions is:
pawn Код:
WriteInLog( const Log_File[ ], Log_Com[ ], Log_Par[ ], va_args< > )
And yes, if you see "va_args< >" it uses y_va from ******.

Params:
  • Log_File[ ] - Name of the .log file // it can be .txt too
  • Log_Com[ ] - Your comment about the log, it could be anything
  • Log_Par[ ] - Text (Bla: %s, Bla2, %i...etc)
  • va_args< > - Arguments for %s, %i..etc

Another function that is implemented(I know, a big word for such a small script) is "DeleteLog" whitch says it all.
pawn Код:
DeleteLog( "NameOfLog.log" )
Example of WriteInLog:
pawn Код:
WriteInLog( "LogThis.log", "My Comment about this", "Name: %s, Money: %i, Health: %f", "Rock", 500, 100.00 );
In "LogThis.log" it will appear:
Код:
COMMENT: My Comment about this
(20/2/2013)[04:35:37] Name: Rock, Money: 500, Health: 100.000000
You will also have a test script inside the folder you will download(I hope you will)

Download:
Solidfiles - Direct Download

IMPORTANT:
If you want to use this you will need y_va which you can get from here.

If any bugs occur tell me and I will update as fast as I can.
Reply


Messages In This Thread
rLogs | Server logs [y_va] - by Rock - 19.02.2013, 13:54
Re: rLogs | Server logs - by rVar - 19.02.2013, 14:05
Re: rLogs | Server logs - by Rock - 19.02.2013, 16:33
Re: rLogs | Server logs - by DanLore - 20.02.2013, 11:07
Re: rLogs | Server logs - by [L4T]Left4Theft - 25.02.2013, 14:29
Re: rLogs | Server logs - by Apenmeeuw - 25.02.2013, 14:32
Re: rLogs | Server logs - by sDAAw - 25.03.2013, 08:28
Re: rLogs | Server logs - by RajatPawar - 25.03.2013, 09:19
Re: rLogs | Server logs - by Rock - 25.03.2013, 11:57
Re: rLogs | Server logs - by Rock - 25.03.2013, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)