21.06.2016, 17:25
(
Последний раз редактировалось Dayrion; 23.06.2016 в 02:46.
)
It's solved! Thanks all.
Path problem.
EDIT: I'm fucking retarded, solved again.
EDIT2: Solved.
PHP код:
WriteLogs(static playername[], file[70], static author[], static reason[], static other[])
{
static day, month, hour, minute, seconde, year, stringW[190], path[90];
if(strfind(file, ".txt", false, 0) == -1) format(file, sizeof(file), "%s.txt", file);
format(path, sizeof(path), "/Logs/%s", file);
new File:pos=fopen(path, io_append);
if(!pos) return printf("[FS] Write Logs Error | Reason : pos=fopen Error | %s", path), 1;
gettime(hour, minute, seconde);
getdate(year, month, day);
format(stringW,sizeof(stringW),"\r\n[%02i/%02i/%02i] %02i:%02i:%02i | %s %s %s : %s", day, month, year, hour, minute, seconde, author, reason, playername, other);
fwrite(pos,stringW);
fclose(pos);
return 1;
}
EDIT: I'm fucking retarded, solved again.
EDIT2: Solved.