Re: [wizs] 問題
看板mud_sanc (Sanctuary - 聖殿)作者laechan (小太保)時間14年前 (2012/03/05 19:21)推噓1(1推 0噓 0→)留言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
03/05 19:56, 1F
討論串 (同標題文章)
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章