23.03.2013, 19:06
(
Последний раз редактировалось FunnyBear; 24.03.2013 в 08:06.
)
gLogs - Easiest way of creating logs
Introduction
This is my second include, and this is a new way of creating logs easily. You can now create a log in a few lines of text!
Example script
Here is an example script on how to make an easy log:
Download
Introduction
This is my second include, and this is a new way of creating logs easily. You can now create a log in a few lines of text!
Example script
Here is an example script on how to make an easy log:
pawn Код:
CMD:log(playerid, params[])
{
new
log[ 128 ];
format(log, sizeof(log), "Player has done something"); // Change it to your own line
WriteLog("Log", log);
return 1;
}
If you were to create a log with time, it would like like this:
There paramaters are,pawn Код:
CMD:log(playerid, params[])
{
new
fyear, fmonth, fday,
fhour, fminute, fsecond;
new
log[ 128 ];
getdate(fyear, fmonth, fday);
gettime(fhour, fminute, fsecond);
format(log, sizeof(log), "[%02d/%02d/%04d %02d:%02d:%02d] Player has done something", fday, fmonth, fyear, fhour, fminute, fsecond); // Change it to your own line
WriteLog("Log", log);
return 1;
}
pawn Код:
WriteLog("/*log name/location*/", /*log variable*/);
Mediafire - http://www.mediafire.com/?rdbcbe6vo1d53o3
Changelog
Код:
v1.0 - Added logs include
Thanks