SA-MP Forums Archive
How to build second log - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to build second log (/showthread.php?tid=126448)



How to build second log - billy4601 - 08.02.2010

A good log information can help the servers that do not have enough admin.

However, if the log information is very large. Admin will be difficult to find the information they need.

So, the script can build other log? how to build anf work?


Re: second log? - TTJJ - 08.02.2010

Hi there billy4601,

I took a quick search,

maybe this could benefit you: http://forum.sa-mp.com/index.php?topic=73748.0

Let us know how you get on,

TJ


Re: second log? - billy4601 - 08.02.2010

Quote:
Originally Posted by TTJJ
Hi there billy4601,

I took a quick search,

maybe this could benefit you: http://forum.sa-mp.com/index.php?topic=73748.0

Let us know how you get on,

TJ
Well, I guess you may misunderstood what I mean. I mean can build other types of log?

like a ban log, kicklog, reportlog ... etc. But this This may be helpful


Re: How to build second log - billy4601 - 09.02.2010

Anyone can help me? or, can teach me how to Planning a good log.


Re: How to build second log - jonrb - 11.05.2010

Hey,
I understand what you want. The normal log can get very big and it becomes very hard to find what you want.
My best solution for you is using printtofile:
Код:
printtofile(filename[],string[])
{
	if(!fexist(filename)) fcreate(filename);
	new File:FTW=fopen(filename,io_append);
	fwrite(FTW,string);
	fclose(FTW);
	return 1;
}



Re: How to build second log - Sergei - 11.05.2010

Use SQL database to make logs. It's easy to search in them.