## Need help with an error

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
PedroChurro
Prole
Posts: 25
Joined: Tue Oct 09, 2012 8:22 pm
Location: In my room

### Need help with an error

Hi, it's me, again, with another noob question.
So, I'm looking at the code for hours, and I still don't know why this error is happening:

Code: Select all

Error

Syntax error: main.lua:1: '=' expected near 'player'

Traceback

[C]: ?
[C]: in function 'require'
[C]: in function 'xpcall'

Please tell me if you need to take a look at the code.
I try to make games.

Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

### Re: Need help with an error

I think the first line of main.lua should be enough... Is it something like "require player"? If it is, edit it into "require 'player' "
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
li = love.image
lg = love.graphics

PedroChurro
Prole
Posts: 25
Joined: Tue Oct 09, 2012 8:22 pm
Location: In my room

### Re: Need help with an error

Nixola wrote:I think the first line of main.lua should be enough... Is it something like "require player"? If it is, edit it into "require 'player' "
Thanks, that worked.

Also, could anyone explain me why everyone has "Obey" in their avatars?
I try to make games.

Qcode
Party member
Posts: 170
Joined: Tue Jan 10, 2012 1:35 am

### Re: Need help with an error

viewtopic.php?f=3&t=9 7th post down. Yep, you fell for it.

PedroChurro
Prole
Posts: 25
Joined: Tue Oct 09, 2012 8:22 pm
Location: In my room

### Re: Need help with an error

Qcode wrote:viewtopic.php?f=3&t=9 7th post down. Yep, you fell for it.
Hahaha, nice one!
I try to make games.

### Who is online

Users browsing this forum: vestman and 57 guests