• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] timestamp include - i need help
#2
I did it in this way

Code:
stock CreateLog(FileName[], string[])
{
    new logstring[256];
    format(logstring, 256, FormatTimestamp(Timestamp(), "[%d/%m/%y-%H:%M]: %s\r\n"),string);
    new File:hFile;
    hFile = fopen(FileName, io_append);
    fwrite(hFile, logstring);
    fclose(hFile);
    return 1;
}


Thread can be locked
  Reply


Messages In This Thread
RE: timestamp include - i need help - by justcroatiansamper - 2024-05-12, 06:42 PM

Forum Jump: