695 posts
Location
In my basement.
Posted 28 August 2014 - 05:42 PM
Hi, I'm making an os. I got error at line 91: attempt to call nil.
I can't for the love of god not find the error.
the code can be found
hereThanks for help.
1080 posts
Location
In the Matrix
Posted 28 August 2014 - 06:00 PM
your function main is defined after its trying to be called, try moving the offending function below it
695 posts
Location
In my basement.
Posted 28 August 2014 - 06:14 PM
But, that makes no difference in lua though…
1852 posts
Location
Sweden
Posted 28 August 2014 - 06:18 PM
But, that makes no difference in lua though…
Yes it does
foo() -- #Attempt to call nil
local function foo()
print( "bar" )
end
695 posts
Location
In my basement.
Posted 28 August 2014 - 06:42 PM
Spoiler
But, that makes no difference in lua though…
Yes it does
foo() -- #Attempt to call nil
local function foo()
print( "bar" )
end
oh, I didn't know that. I'll try it.
Edit: It worked!
Edited on 28 August 2014 - 04:49 PM