12.05.2012, 23:51
Hola, bueno tengo un problema mi servidor crashea en mi host linux y en mi pc no. Crashea por este codigo
y en mi pc tengo windows y los guarda y no crashea. Espero sus respuestas
pawn Код:
public GuardarEn(filename[],text[])
{
new File:Lfile;
new filepath[256];
new string[256];
new year, month, day;
new hour, minute, second;
getdate(year, month, day);
gettime(hour, minute, second);
format(filepath,sizeof(filepath),"/Logs/%s.txt", filename);
Lfile = fopen(filepath,io_append);
format(string,sizeof(string),"[%02d/%02d/%02d | %02d:%02d:%02d] %s\r\n",day,month,year,hour,minute,second, text);
fwrite(Lfile,string);
fclose(Lfile);
return 1;
}