Need help with an error

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
PedroChurro
Prole
Posts: 25
Joined: Tue Oct 09, 2012 8:22 pm
Location: In my room

Need help with an error

Post by PedroChurro » Thu Oct 11, 2012 7:33 pm

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.

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

Re: Need help with an error

Post by Nixola » Thu Oct 11, 2012 7:35 pm

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
lt = love.thread
li = love.image
lg = love.graphics

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

Re: Need help with an error

Post by PedroChurro » Thu Oct 11, 2012 7:40 pm

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.

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

Re: Need help with an error

Post by Qcode » Thu Oct 11, 2012 10:40 pm

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

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

Re: Need help with an error

Post by PedroChurro » Fri Oct 12, 2012 1:22 pm

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 65 guests