Jump to content




bios:338: [string "startup"]:8: ')' expected


  • You cannot reply to this topic
4 replies to this topic

#1 billbertking1

  • Members
  • 22 posts

Posted 22 July 2013 - 10:42 AM

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

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

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.

#3 billbertking1

  • Members
  • 22 posts

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

#4 Tjakka5

  • Members
  • 256 posts

Posted 22 July 2013 - 11:49 AM

You need to do

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 billbertking1

  • Members
  • 22 posts

Posted 22 July 2013 - 11:49 AM

Cool thanks

but how do i get it to run the program "button"?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users