This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mackan90096's profile picture

[Need help] The text background turns brown.

Started by Mackan90096, 20 April 2013 - 05:33 AM
Mackan90096 #1
Posted 20 April 2013 - 07:33 AM
Hi! I am trying to make a "building" game where you spend money on buildings and
make money from them.

But when i press a button the function printing the text turns the text background brown..
Why and how do i fix this?

Code:


function printStats()
term.setCursorPos(1,1)
print("Money: "..money)
print("Income: "..income)
print("Selected:")
print(selectItem)
end
Drifter #2
Posted 20 April 2013 - 07:45 AM
Make sure, after you are done printing brown background, set background color back to black.

term.setBackgroundColor(colors.black)
Doyle3694 #3
Posted 20 April 2013 - 07:55 AM
Give us your whole code.
Mackan90096 #4
Posted 20 April 2013 - 07:59 AM
Give us your whole code.

Why?
So you can copy it?
Mackan90096 #5
Posted 20 April 2013 - 08:06 AM
That worked drifter! :)/>
remiX #6
Posted 20 April 2013 - 08:21 AM
Give us your whole code.

Why?
So you can copy it?

Wow. Really?

http://www.computercraft.info/forums2/index.php?/topic/475-get-help-faster-read-me/

Post your code if you're not getting it to work! We can't tell you what's wrong if we can't see your code.
Mackan90096 #7
Posted 20 April 2013 - 08:36 AM
Give us your whole code.

Why?
So you can copy it?

Wow. Really?

http://www.computerc...faster-read-me/

Post your code if you're not getting it to work! We can't tell you what's wrong if we can't see your code.

Thats true..
But, I only posted the relevant code so the ones that helped me didn't need to look through all of it.
Lyqyd #8
Posted 20 April 2013 - 08:43 AM
No, you clearly didn't post the relevant code, since there isn't anything in that code that sets the background color to brown. Nobody is interested in stealing your code here. If we ask for something, it's only to try to help you better. Getting upset with those trying to help you is only going to make them not want to help you.
Mackan90096 #9
Posted 20 April 2013 - 11:14 PM
No, you clearly didn't post the relevant code, since there isn't anything in that code that sets the background color to brown. Nobody is interested in stealing your code here. If we ask for something, it's only to try to help you better. Getting upset with those trying to help you is only going to make them not want to help you.

Oh, sorry. Didn't realize that…

edit: I've had people stealing code from me before so I'm being careful on posting certain codes.
(Sorry for any spelling mistakes)
Doyle3694 #10
Posted 21 April 2013 - 01:29 AM
And you still have yet to give us the code. If you are so scared of people stealing your code then maybe a public forum where you ask for help is not the best option.
theoriginalbit #11
Posted 21 April 2013 - 01:34 AM
And you still have yet to give us the code.

That worked drifter! :)/>

If you are so scared of people stealing your code then maybe a public forum where you ask for help is not the best option.
Indeed. Maybe a PM or more private forum would be better suited…
Mackan90096 #12
Posted 21 April 2013 - 06:30 AM
And you still have yet to give us the code.

That worked drifter! :)/>

If you are so scared of people stealing your code then maybe a public forum where you ask for help is not the best option.
Indeed. Maybe a PM or more private forum would be better suited…

True, true.