看板 mud_sanc 關於我們 聯絡資訊
※ 引述《justinj (黑旋風)》之銘言: : :::::::::::::: /open/justin_data/devil/earth :::::::::::::: : 1331543189 : :::::::::::::: /u/j/justinj/area2/desert/room/061.c :::::::::::::: : . : . : string st=read_file("/open/justin_data/devil/earth"); : . : . : int init() : { : write("st="+st+"\nnowt="+time()+"\ntime="+time+"\ntest\n"); : . : . : 結果 : renew here : /u/j/justinj/area2/desert/room/061: st=0 : nowt=1330941800 : time=0 : test : 不知為何read_file讀不到資料..... 我一般會這樣寫(我猜這就是原因才讓我養成這習慣) string st; void init() { if(!st) st=read_file("/open/justin_data/devil/earth"); write("st="+st+"\nnowt="+time()+"\ntime="+time+"\ntest\n"); } norr 應該有印象我幾乎都是這麼幹的,你可以 try try。 (EX: if(!laechan) laechan=find_player("laechan"); ) Laechan -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.7.33
justinj :看樣子放在最前面的讀取就有問題.....amem... 03/05 19:56