Log In  


The code im using gives me a syntax error, here is my code
function fire()
local b = {
sp=3
x=ship.x,
y=ship.y,
dx=0,
dy=-3
}
add(bullets,b)
end

It is the only thing wrong with the code
it says
"unclosed '{'
even when it isnt.



I was going to say I think your missing a end for your function cause you have no whitespace but you didn't put a , to seperate your items so it is unclosed


sp=3

you miss a coma


I was trying that shooter tutorial, but at the actual shooting part, it is giving me an unclosed bracket error, eveen though I followed the steps carefully, That's what I need help with!


1

people have told you what the problem is.

if you have fixed it and have a new error, you need to show the new code and the exact error message.



[Please log in to post a comment]