Re: [wizs] 問題

看板mud_sanc (Sanctuary - 聖殿)作者 (小太保)時間14年前 (2012/03/05 19:21), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/4 (看更多)
※ 引述《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

03/05 19:56, , 1F
看樣子放在最前面的讀取就有問題.....amem...
03/05 19:56, 1F
文章代碼(AID): #1FLA75MD (mud_sanc)
討論串 (同標題文章)
本文引述了以下文章的的內容:
14年前, 03/05
完整討論串 (本文為第 2 之 4 篇):
2
12
13年前, 09/07
1
1
14年前, 03/05
文章代碼(AID): #1FLA75MD (mud_sanc)