SHARE
TWEET

Untitled

a guest Jan 11th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock ChatLog(logart[],logtext[])
  2. {
  3.     new log[100];
  4.     new day,month,year,sec,minut,hour;
  5.     gettime(hour,minut,sec);
  6.     getdate(year,month,day);
  7.     format(log,sizeof(log),"/Logs/[%d_%d_%d][H_%d]%s.ini",day,month,year,hour,logart);
  8.     if(!dini_Exists(log))
  9.     {
  10.         dini_Create(log);
  11.     }
  12.     new File:logfile=fopen(log,io_append);
  13.     new string[260];
  14.     format(string,sizeof(string),"[%d:%d:%d][%d:%d:%d]: %s\r\n",day,month,year,hour,minut,sec,logtext);
  15.     fwrite(logfile,string);
  16.     fclose(logfile);
  17. }
RAW Paste Data
Top