xxSPEEDYxx Posted January 5, 2012 Posted January 5, 2012 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!
Question
mitza505
CUM POT FACE UN LOG PENTRU COMENZI???
1 answer to this question
Recommended Posts