Trying to write /reports to file
#6

Quote:
Originally Posted by awsomedude
Посмотреть сообщение
remove this line #if defined SAVE_LOGS also remove #endif
On line 167:
error 001: expected token: ";", but found "-identifier-"
error 017: undefined symbol "filepath"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line

Line 167:
Код:
 new File:File filepath[128], string[128], year,month,day, hour,minute,second;
Heres the whole thing with your changes:

Код:
public SaveToFile(filename[],text[]){
    new File:File filepath[128], string[128], year,month,day, hour,minute,second;
    getdate(year,month,day); gettime(hour,minute,second);
    format(filepath,sizeof(filepath),"Thepath/%s.txt",filename);
    File = 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(File,string);
    fclose(File);
    return 1;}
Reply


Messages In This Thread
Trying to write /reports to file - by Brandondw8 - 14.05.2014, 19:53
Re: Trying to write /reports to file - by KillerStrike23 - 14.05.2014, 19:58
Re: Trying to write /reports to file - by Brandondw8 - 14.05.2014, 20:03
Re: Trying to write /reports to file - by Brandondw8 - 14.05.2014, 20:07
Re: Trying to write /reports to file - by awsomedude - 14.05.2014, 21:00
Re: Trying to write /reports to file - by Brandondw8 - 14.05.2014, 23:28
Re: Trying to write /reports to file - by Brandondw8 - 15.05.2014, 00:32
Re: Trying to write /reports to file - by KillerStrike23 - 15.05.2014, 03:47
Re: Trying to write /reports to file - by Brandondw8 - 15.05.2014, 04:42
Re: Trying to write /reports to file - by Brandondw8 - 15.05.2014, 07:45

Forum Jump:


Users browsing this thread: 1 Guest(s)