Ipad Lua不适合哈希会导致编译错误吗?

Ipad Lua不适合哈希会导致编译错误吗?,ipad,hash,lua,screen,Ipad,Hash,Lua,Screen,我在iPad上使用一个名为Lua的Lua开发环境。 此散列工作并编译: imgs = {readImage (spriteexample1, pos.x, pos.y), readImage(spriteexample2, pos.x, pos.y), readImage(spriteexample3, pos.x, pos.y), readImage(spriteexample4, pos.x, pos.y), readImage(spriteexampl

我在iPad上使用一个名为Lua的Lua开发环境。 此散列工作并编译:

imgs = {readImage (spriteexample1, pos.x, pos.y), readImage(spriteexample2, pos.x,                
pos.y), readImage(spriteexample3, pos.x, pos.y), readImage(spriteexample4, pos.x,   
pos.y), readImage(spriteexample5, pos.x, pos.y), readImage(spriteexample6, pos.x, pos.y)}

(它在屏幕上spriteexample4之后的第二行中断。)问题是,当我转到第三行添加两个以上的Sprite作为值时,它告诉我必须关闭第一行的括号。有什么帮助吗

如果我复制您的代码并运行它(在定义了一个伪
readImage()
函数和
pos={x=0,y=0}
之后),没有问题,所以一定有一个奇怪的字符,比如UTF-8字符,在编辑器中正常显示,但解释器不喜欢。尝试在记事本++之类的工具中打开文件,查看|显示符号|显示所有字符

编辑错误。再读一遍。请在这段之前和之后发几行代码。好了。添加了。可能是第2行末尾的符号错误(例如CR)?