22.05.2013, 22:53
pawn Код:
new Log[400];
new Path[70];
new File:FileLog; //error line
new Year,Month,Day;
getdate(Year,Month,Day);
format(Path, 70, "ladmin/logs/%s.txt", filename);
format(Log,500,"[%d.%d.%d] %s\r\n",Day,Month,Year, text);
FileLog = fopen(Path,io_append);
fwrite(FileLog,Log);
fclose(FileLog);
you miss ; at
pawn Код:
fclose(FileLog)
pawn Код:
fclose(FileLog);