what does it mean when i get "bios:338: [string "startup"]:8: ')' expected"?
i don't understand at all what that means and i get it ALLOT. i need the help
bios:338: [string "startup"]:8: ')' expected
Started by billbertking1, Jul 22 2013 10:42 AM
4 replies to this topic
#1
Posted 22 July 2013 - 10:42 AM
#2
Posted 22 July 2013 - 11:20 AM
Split to new topic.
I would like to let you know, that since you are now in the 'Members' group, you are able to create your own topics. This was about ten posts ago.
Also, without seeing your code, it's hard to tell what you are erroring at.
"bios:338: [string "startup"]:8: ')' expected" meansd that on line 8, the program expected a closing parenthesis ')', but none was given.
Try taking a look at Advert's Codex of Error Slaying to learn more about the error messages thrown in the computercraft bios.
I would like to let you know, that since you are now in the 'Members' group, you are able to create your own topics. This was about ten posts ago.
Also, without seeing your code, it's hard to tell what you are erroring at.
"bios:338: [string "startup"]:8: ')' expected" meansd that on line 8, the program expected a closing parenthesis ')', but none was given.
Try taking a look at Advert's Codex of Error Slaying to learn more about the error messages thrown in the computercraft bios.
#3
Posted 22 July 2013 - 11:36 AM
ok heres the code
local mon = peripheral.wrap("back")
mon.setTextScale(1)
mon.setTextColor(colors.black)
local button={}
mon.setBackgroundColors(colors.white)
function printMessage(message)
__.print(Running Program: button)
end
later on im going to add the "shell.run("button")", but the first part wont work at all
local mon = peripheral.wrap("back")
mon.setTextScale(1)
mon.setTextColor(colors.black)
local button={}
mon.setBackgroundColors(colors.white)
function printMessage(message)
__.print(Running Program: button)
end
later on im going to add the "shell.run("button")", but the first part wont work at all
#4
Posted 22 July 2013 - 11:49 AM
You need to do
Hope that helps.
Also, its going to do attemt to call nill as button is not defined as anything... and its a table.
EDIT: And, if you want to run it on the monitor you need to do mon.write("Running program" ..button)
print("Running program" ..button)
The "Running program" part is a string, so it needs to be in brackets.
The button is a variable, so you need to do ..button
Hope that helps.
Also, its going to do attemt to call nill as button is not defined as anything... and its a table.
EDIT: And, if you want to run it on the monitor you need to do mon.write("Running program" ..button)
#5
Posted 22 July 2013 - 11:49 AM
Cool thanks
but how do i get it to run the program "button"?
but how do i get it to run the program "button"?
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











