推 doall:感謝小寶~ 12/06 12:28
※ 引述《doall (狂人)》之銘言:
: 3_7_1.c 在update出現的敘述十分怪
: 編譯時段錯誤:
: /u/d/dolla/area/3_7_1.c line 9: Reserved type name unexpected. before ;
: 編譯時段錯誤:
: /u/d/dolla/area/3_7_1.c line 9: syntax error before ;
: 編譯時段錯誤:
: /u/d/dolla/area/3_7_1.c line 10: Illegal LHS before the end of line
: 編譯時段錯誤:
: /u/d/dolla/area/3_7_1.c line 11: Reserved type name unexpected. before coor;
: 編譯時段錯誤:
: /u/d/dolla/area/3_7_1.c line 11: syntax error before coor;
: 編譯時段錯誤:
: /u/d/dolla/area/3_7_1.c line 14: Illegal LHS before //""內分別輸入enter
: line 9是: mapping room_exit;
: line 10是: room_exit = ([]);
: line 11是: int *coor;
變數宣告要挪到 ::create() 之前。
: line 14是: other = ({"",""});//""內分別輸入enter and out的檔案位置,若無,請保持空白
: 是不是我宣告方式有錯?
: 另外小寶幫我找出的錯誤我已經修正了,謝謝小寶。
另外..
mapping set_exit(int x,int y,int x,string enter,string out)
你重覆定義了兩個 int x,我把後面的改成 int z 了。
程式有些地方的寫法怪怪的,我順便做了修正,你可以跟 auto_exits.bak
對照。
Laechan
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.225.164.211