作者laechan (小太保)
看板mud_sanc
标题Re: [wizs] 问题
时间Mon Mar 5 19:21:38 2012
※ 引述《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
1F:推 justinj :看样子放在最前面的读取就有问题.....amem... 03/05 19:56