Jump to content

Question

1 answer to this question

Recommended Posts

Posted

forward SaveToFile( filename[ ], text[ ] );
public SaveToFile( filename[ ], text[ ] )
{
	new File:LAdminfile, filepath[ 256 ], string[ 256 ], year,month,day, hour,minute,second;
	getdate( year, month, day ); gettime( hour, minute, second );

	format( filepath, sizeof( filepath ), "ladmin/logs/%s.txt", filename );
	LAdminfile = fopen( filepath, io_append );
	format( string, sizeof( string ),"[%d.%d.%d %d:%d:%d] %s\r\n", day, month, year, hour, minute, second, text );
	fwrite( LAdminfile, string );
	fclose( LAdminfile );
	return 1;
}

Greu ii ma sa cauti prin ladmin 8-|, dar o poti edita sa nu fie numai pentru ladmin 8-|

Nu se cer scripturi.

Fara reclama in semnatura!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.