|
发表于 2011-12-15 21:51:24
|
显示全部楼层
有人在用这个么?感觉,很不错
不过,有错误的啊,请问,如何解决?
Run-time error
World: Pkuxkx-Scyllane
Immediate execution
[string "Script file"]:274: [Microsoft][ODBC Microsoft Access 驱动程序] INSERT INTO 语句包含下列未知的字段名: 'exits'。确定键入的名称是正确的, 然后重试。
stack traceback:
[C]: in function 'assert'
[string "Script file"]:274: in function 'writepath_room'
[string "触发器: asd"]:1: in main chunk
脚本错误处的上下文:
270 : assert (package.loadlib (GetInfo(56).."odbc.dll","luaopen_luasqlodbc")) ()
271 : env = assert (luasql.odbc())
272 : con = assert (env:connect ("Pkuxkx-Scyllane","",""))
273 : local str = "INSERT INTO [path3_room]([area],[zone],[room],[path_go],[path_back],[id],[exits],[describe]) VALUES('"..area.."','"..zone.."','"..room.."','"..path_go..";ok','"..path_back..";ok','"..id.."','"..exits.."','"..describe.."')"
274*: assert (con:execute (str))
275 : con:close()
276 : env:close()
277 : SetVariable("path_record_mode","off")
278 : Note(" 此记录已写入数据库path3_room。") |
|