Jump to content

[Update - 20.02.2013] rLogs | Server Logs


Guest Rock

Recommended Posts

rLogs | Server Logs

Scripted by Rock

UPDATE 20/02/2013:

Am decis sa fac un update acestui include deoarece era destul de primitiv si mi sa parut folositor.

Acum poti creea si scrie intr-un log ocupand doar o singura linie.

Syntax:

WriteInLog( const Log_File[ ], Log_Com[ ], Log_Par[ ], va_args< > )

Parametrii:

Log_File[ ] - Numele log-ului

Log_Com[ ] - Comentariul tau legat de log, poate fii orice

Log_Par[ ] - Text (Bla: %s, Bla2: %i, %f...etc)

va_args< > - Variabila sursa pentru %s, %i..etc

Din versiunea veche a fost pastrata doar functia DeleteLog.

DeleteLog( "NameOfLog.log" );

Exemplu pentru WriteInLog:

WriteInLog( "LogThis.log", "My Comment about this", "Name: %s, Money: %i, Health: %f", "Rock", 500, 100.00 );

In fisierul LogThis.log va aparea asa:

COMMENT: My Comment about this
(20/2/2013)[04:35:37] Name: Rock, Money: 500, Health: 100.000000

De asemnea am inclus in folderul care il vezi descarca un test ca exemplu.

Download:

[download]Solidfiles - Direct Download[/download]

SA-MP.COM Post

Link to comment
Share on other sites

  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.