Hallo
Ich habe dieses Log System gefunden,
stock Log(filename[],write[])
{
new File:LogFile, str[256], mhour, mminute, msecond, myear, mmonth, mday;
if(fexist(filename))
{
LogFile = fopen(filename,io_append);
}
else
{
LogFile = fopen(filename,io_write);
}
gettime(mhour,mminute,msecond);
getdate(myear,mmonth,mday);
format(str,sizeof(str),"%02d.%02d.%d %02d:%02d:%02d: %s\n",mday,mmonth,myear,mhour,mminute,msecond,write);
fwrite(LogFile,str);
fclose(LogFile);
}
Aber nun meine Frage, wie kann ich es Ändern, damit es die Datein im Ordner: scriptfiles/logs Speichert ?
Thy schonmal
MFG
Raphael