Function crash the server.
#10

It's solved! Thanks all.
PHP код:
WriteLogs(static playername[], file[70], static author[], static reason[], static other[])
{
    static 
daymonthhourminutesecondeyearstringW[190], path[90];
    if(
strfind(file".txt"false0) == -1format(filesizeof(file), "%s.txt"file);
    
format(pathsizeof(path), "/Logs/%s"file);
    new 
File:pos=fopen(pathio_append);
    if(!
pos) return printf("[FS] Write Logs Error | Reason : pos=fopen Error | %s"path), 1;
    
gettime(hourminuteseconde);
    
getdate(yearmonthday);
    
format(stringW,sizeof(stringW),"\r\n[%02i/%02i/%02i] %02i:%02i:%02i | %s %s %s : %s"daymonthyearhourminutesecondeauthorreasonplayernameother);
    
fwrite(pos,stringW);
    
fclose(pos);
    return 
1;

Path problem.

EDIT: I'm fucking retarded, solved again.
EDIT2: Solved.
Reply


Messages In This Thread
Function crash the server. - by Dayrion - 21.06.2016, 15:44
Re: Function crash the server. - by ATGOggy - 21.06.2016, 15:47
Re: Function crash the server. - by Dayrion - 21.06.2016, 15:49
Re: Function crash the server. - by Konstantinos - 21.06.2016, 15:51
Re: Function crash the server. - by Dayrion - 21.06.2016, 16:00
Re: Function crash the server. - by jlalt - 21.06.2016, 16:04
Re: Function crash the server. - by Konstantinos - 21.06.2016, 16:08
Re: Function crash the server. - by SecretBoss - 21.06.2016, 16:12
Re: Function crash the server. - by Dayrion - 21.06.2016, 16:33
Re: Function crash the server. - by Dayrion - 21.06.2016, 17:25

Forum Jump:


Users browsing this thread: 4 Guest(s)