19.02.2013, 13:54
(
Последний раз редактировалось Rock; 21.02.2013 в 13:31.
)
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< > )
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" )
pawn Код:
WriteInLog( "LogThis.log", "My Comment about this", "Name: %s, Money: %i, Health: %f", "Rock", 500, 100.00 );
Код:
COMMENT: My Comment about this (20/2/2013)[04:35:37] Name: Rock, Money: 500, Health: 100.000000
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.