56 posts
Posted 18 December 2012 - 05:56 PM
So i have been at this CC codeing thing for liek a week now as in over 60 Hours studing it (im sick so no work) and i managed to get some stuff resized and printed on a monitor so far and now this on part 2.
redstone.setBundledOutput('rear', color.white)
end
and the error in getting is "bios:206: [string"lights"]:2: '<eof>' expected"
as i dont even have the word "lights" used not even in the file name, i have no idea what it means.
tryed for the last 3 ours to fix it with no luck, and i still dont understand what a "string" is.
This is why i asked for a 1on1 help before.
1111 posts
Location
Portland OR
Posted 18 December 2012 - 06:18 PM
An eof means the end of file was reached but it thinks there is more code to run.
If this is all of your code the end is causing the error, you don't need it to call a function. Only for if statements, functions, and while/for loops. If it is not all of the code we will need to see the rest.
Another issue is that colors is plural so it is colors.white or colours.white.
56 posts
Posted 18 December 2012 - 06:25 PM
An eof means the end of file was reached but it thinks there is more code to run.
If this is all of your code the end is causing the error, you don't need it to call a function. Only for if statements, functions, and while/for loops. If it is not all of the code we will need to see the rest.
Another issue is that colors is plural so it is colors.white or colours.white.
Yes, thats ALL of the code… starting simple
thanks a bunch, and a function in lua? yea i still dont get most of it =/
but ty i got that part
7508 posts
Location
Australia
Posted 18 December 2012 - 07:10 PM
as i dont even have the word "lights" used not even in the file name, i have no idea what it means.
tryed for the last 3 ours to fix it with no luck, and i still dont understand what a "string" is.
the "lights" is the file the error happened in. error format is as follows
"[what sent the error] [program that has error]:[line error is on] [error message]"
so basically the error is that the bios (at line 206) has quit the program "lights" because at line 2 it expected end of file
This is why i asked for a 1on1 help before.
when did you ask for that?