Weird syntax error[ SOLVED ]
Posted: Fri Dec 31, 2021 2:00 am
Hi!! :DDD
Im a begginer at programming and trying to recreate Space Invader in Löve for Android. But im getting a syntax error that i can't quite understand why im getting it:
Error
Syntax error: bullet.lua:74: 'end' expected (to close 'function' at line 48) near '<eof>'
Traceback
[C]: at 0x97533909
[C]: in function 'require'
main.lua:15: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
It happens in a function that is supposed to handle the player's bullets, the player is supposed to have 5 bullets that he can shoot when they're not already on the screen.
I'd very thankful if anyone can help me with this, have a good day :))
Im a begginer at programming and trying to recreate Space Invader in Löve for Android. But im getting a syntax error that i can't quite understand why im getting it:
Error
Syntax error: bullet.lua:74: 'end' expected (to close 'function' at line 48) near '<eof>'
Traceback
[C]: at 0x97533909
[C]: in function 'require'
main.lua:15: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
It happens in a function that is supposed to handle the player's bullets, the player is supposed to have 5 bullets that he can shoot when they're not already on the screen.
I'd very thankful if anyone can help me with this, have a good day :))