26.03.2010, 17:28
This is my code. it can work, but the file is not Chinese characters......
What happened? How to fix it up?
pawn Код:
new h;new mins;new sec;new y,m,d;
new str[256];new stringer[256];
getdate(y,m,d);gettime(h,mins,sec);
format(str,256,"-[%02d:%02d:%02d]- 伺服器正式開機\r\n",h,mins,sec);
format(stringer,256,"記錄檔案/伺服器/%d-%d-%d 伺服器開機紀錄.log",y,m,d);
new File:FILE = fopen(stringer,io_append);
fwrite(FILE,str);
fclose(FILE);
Код:
-[01:19:43]- ¦шЄAѕ№Ґї¦Ў¶}°т