string.find
我在运行的时候,报错啊
[string "Script file"]:58: bad argument #1 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
[string "Script file"]:58: in function <[string "Script file"]:19>
这个应该是内置函数,为啥要报错?
if string.find(l,'设定环境变量:no_teach = "draw_end"') or string.find(l,'设定环境变量:no_teach = "q"') then break end |