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.

P#118172 2022-09-29 19:13

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

P#118174 2022-09-29 19:14

sp=3

you miss a coma

P#118175 2022-09-29 19:18

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!

P#118181 2022-09-29 20:47
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.

P#118182 2022-09-29 21:07

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-12-02 00:13:22 | 0.006s | Q:13