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

i need moore count's? i think?

Started by tysje, 17 October 2012 - 07:32 PM
tysje #1
Posted 17 October 2012 - 09:32 PM
hello cc pro's!

i am rather new to cc and lua but i understand some of it and now i'm trying to create a program that counts the difrent ore's and diamonds that comes from my quarry, i have figured how to count one at the time.
but i need moore! right now i'm counting the coal that comes from the quarry (i used to have it count diamonds but there was so little of them so it was booring xD )

and no i did not create all the code myself, i copied it from some awesome youtuber i don't seem to remember the name of :/ and re did some of it to fit my setup :)/>/>

Here is the code that counts the coal:


local count = 0
local monitor
local pState =
{
[1] = rs.testBundledInput("back", colors.red),
[2] = rs.testBundledInput("back", colors.white),
[3] = rs.testBundledInput("back", colors.yellow),
[4] = rs.testBundledInput("back", colors.gray)
}

function writeAt(x,y,text)
monitor.setCursorPos(x,y)
monitor.write(text)
end

function startMonitor()
monitor = peripheral.wrap("top")
end

function drawDisplay()
monitor.clear()
writeAt(1,1,"***************************")
writeAt(1,2,"* from this quarry *")
writeAt(1,3,"***************************")
writeAt(1,4,"* coal: 0 *")
writeAt(1,5,"* Diamonds 0 *")
end

function writeCount()
writeAt(16,4," ")
writeAt(16,4,string.format("%i",count))
end


function redstoneEvent(p1, p2)
local cState =
{
[1] = rs.testBundledInput("back", colors.red),
[2] = rs.testBundledInput("back", colors.white),
[3] = rs.testBundledInput("back", colors.yellow),
[4] = rs.testBundledInput("back", colors.gray)
}

if pState[2] == false and cState[2] == true then – kull + 1
count = count + 1
writeCount()
end
if pState[1] == false and cState[1] == true then – i need another count!! can't use this one for both diamonds and coal :/
count = count + 1
writeCount()
end

pState[1] = cState[1]
pState[2] = cState[2]
pState[3] = cState[3]
pState[4] = cState[4]
end

startMonitor()
drawDisplay()
writeCount()

repeat
local event, p1, p2 = os.pullEvent()
if event == "redstone" then
redstoneEvent(p1, p2)
end
until event == "char" and p1 == "x" – x for og avslutte programmet :P/>/>

os.shutdown()


btw, how do i put the code in one of those fancy boxses? ^^

here is a photo :)/>/>
Noodle #2
Posted 17 October 2012 - 09:36 PM
local count = 0
local monitor
local pState =
{
[1] = rs.testBundledInput("back", colors.red),
[2] = rs.testBundledInput("back", colors.white),
[3] = rs.testBundledInput("back", colors.yellow),
[4] = rs.testBundledInput("back", colors.gray)
}

function writeAt(x,y,text)
monitor.setCursorPos(x,y)
monitor.write(text)
end

function startMonitor()
monitor = peripheral.wrap("top")
end

function drawDisplay()
monitor.clear()
writeAt(1,1,"***************************")
writeAt(1,2,"* from this quarry *")
writeAt(1,3,"***************************")
writeAt(1,4,"* coal: 0 *")
writeAt(1,5,"* Diamonds 0 *")
end

function writeCount()
writeAt(16,4," ")
writeAt(16,4,string.format("%i",count))
end

ores = {
coal = 0, stone = 0, redstone = 0,} -- Etc

function redstoneEvent(p1, p2)
local cState =
{
[1] = rs.testBundledInput("back", colors.red),
[2] = rs.testBundledInput("back", colors.white),
[3] = rs.testBundledInput("back", colors.yellow),
[4] = rs.testBundledInput("back", colors.gray)
}

if pState[2] == false and cState[2] == true then -- kull + 1
ores.coal = ores.coal + 1
writeCount()
end
if pState[1] == false and cState[1] == true then -- i need another count!! can't use this one for both diamonds and coal :/
ores.stone = ores.stone + 1
writeCount()
end

pState[1] = cState[1]
pState[2] = cState[2]
pState[3] = cState[3]
pState[4] = cState[4]
end

startMonitor()
drawDisplay()
writeCount()

repeat
local event, p1, p2 = os.pullEvent()
if event == "redstone" then
redstoneEvent(p1, p2)
end
until event == "char" and p1 == "x" -- x for og avslutte programmet 

I added an ores table
Then made it count, you can configure the rest off the code I did, I hope?

EDIT: I can improve your functions.. or just tell you
You don't need to have a writeCount function
just do this

-- Change the WirteAt function

function writeAt(x,y,text, ...)
count = (...)
monitor.setCursorPos(x,y)
monitor.write(text, count)
end

function drawDisplay()
monitor.clear()
writeAt(1,1,"***************************")
writeAt(1,2,"* from this quarry *")
writeAt(1,3,"***************************")
writeAt(1,4,"* coal: 0 *")
writeAt(1,5,"* Diamonds:", tostring(ores.diamond)) -- Assuming you have diamond inside ores table
end
tysje #3
Posted 17 October 2012 - 09:47 PM
i din't understand all of that you wrote. do i need a table for the ores? or can i just count the difrent ores like i count the coal. and then print it to the monitor like i have done to the coal?

the way i count the coal is via this:
Noodle #4
Posted 17 October 2012 - 10:10 PM
i din't understand all of that you wrote. do i need a table for the ores? or can i just count the difrent ores like i count the coal. and then print it to the monitor like i have done to the coal?

the way i count the coal is via this: *snip*
That might not work.. Unless you sort it then have it run through..
You don't need a table, just do
local coal = 0 – Coal Counter
local diamond = 0 – Diamond Counter
local Iron = 0 – Iron Counter
Etc.
tysje #5
Posted 17 October 2012 - 10:17 PM
That made an error :/

here is the code:

local count = 0
local diamond = 0
local monitor
local pState =
{
[1] = rs.testBundledInput("back", colors.red),
[2] = rs.testBundledInput("back", colors.white),
[3] = rs.testBundledInput("back", colors.yellow),
[4] = rs.testBundledInput("back", colors.gray)
}

function writeAt(x,y,text)
monitor.setCursorPos(x,y)
monitor.write(text)
end

function startMonitor()
monitor = peripheral.wrap("top")
end

function drawDisplay()
monitor.clear()
writeAt(1,1,"***************************")
writeAt(1,2,"* from this quarry *")
writeAt(1,3,"***************************")
writeAt(1,4,"* coal: 0 *")
writeAt(1,5,"* Diamonds 0 *")
end

function writeCount()
writeAt(16,4," ")
writeAt(16,4,string.format("%i",count))
end
function diamond()
writeAt(16,5," ")
writeAt(16,5,string.format("%i",diamond))
end


function redstoneEvent(p1, p2)
local cState =
{
[1] = rs.testBundledInput("back", colors.red),
[2] = rs.testBundledInput("back", colors.white),
[3] = rs.testBundledInput("back", colors.yellow),
[4] = rs.testBundledInput("back", colors.gray)
}

if pState[2] == false and cState[2] == true then – kull + 1
count = count + 1
writeCount()
end
if pState[1] == false and cState[1] == true then – i need another count!! can't use this one for both diamonds and coal :/
diamond = diamond + 1
diamond()
end

pState[1] = cState[1]
pState[2] = cState[2]
pState[3] = cState[3]
pState[4] = cState[4]
end

startMonitor()
drawDisplay()
writeCount()

repeat
local event, p1, p2 = os.pullEvent()
if event == "redstone" then
redstoneEvent(p1, p2)
end
until event == "char" and p1 == "x" – x for og avslutte programmet :P/>/>

os.shutdown()


and here is the error: startup:54: attempt to perfrom arithmetic __add on function and number


hmm?
jag #6
Posted 17 October 2012 - 11:21 PM
Could you surround your codes inside
 tags? Otherwise it's really hard to see how your code is made..
remiX #7
Posted 18 October 2012 - 05:56 AM
btw, how do i put the code in one of those fancy boxses? ^^

Could you surround your codes inside
 tags? Otherwise it's really hard to see how your code is made..

Someone finally answered his question :P/>/>
tysje #8
Posted 18 October 2012 - 07:28 AM
here is the code,
[color=#282828][font=helvetica, arial, sans-serif]local count = 0[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local diamond = 0[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local monitor[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local pState =[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]{[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][1] = rs.testBundledInput("back", colors.red),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][2] = rs.testBundledInput("back", colors.white),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][3] = rs.testBundledInput("back", colors.yellow),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][4] = rs.testBundledInput("back", colors.gray)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]}[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function writeAt(x,y,text)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor.setCursorPos(x,y)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor.write(text)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function startMonitor()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor = peripheral.wrap("top")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function drawDisplay()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor.clear()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,1,"***************************")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,2,"* from this quarry *")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,3,"***************************")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,4,"* coal: 0 *")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,5,"* Diamonds 0 *")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function writeCount()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,4," ")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,4,string.format("%i",count))[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]function diamond()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,5," ")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,5,string.format("%i",diamond))[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]


[color=#282828][font=helvetica, arial, sans-serif]function redstoneEvent(p1, p2)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local cState =[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]{[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][1] = rs.testBundledInput("back", colors.red),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][2] = rs.testBundledInput("back", colors.white),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][3] = rs.testBundledInput("back", colors.yellow),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][4] = rs.testBundledInput("back", colors.gray)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]}[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]if pState[2] == false and cState[2] == true then -- kull + 1[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]count = count + 1[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeCount()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]if pState[1] == false and cState[1] == true then -- i need another count!! can't use this one for both diamonds and coal :/[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]diamond = diamond + 1[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]diamond()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]pState[1] = cState[1][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]pState[2] = cState[2][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]pState[3] = cState[3][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]pState[4] = cState[4][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]startMonitor()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]drawDisplay()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeCount()[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]repeat[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local event, p1, p2 = os.pullEvent()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]if event == "redstone" then[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]redstoneEvent(p1, p2)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]until event == "char" and p1 == "x" -- x for og avslutte programmet [/font][/color] :P/>/>


[color=#282828][font=helvetica, arial, sans-serif]os.shutdown()[/font][/color]

and here is the error :/

[color=#282828][font=helvetica, arial, sans-serif]startup:54: attempt to perfrom arithmetic __add on function and number[/font][/color]
tysje #9
Posted 18 October 2012 - 07:29 AM
here is the code,
[color=#282828][font=helvetica, arial, sans-serif]local count = 0[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local diamond = 0[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local monitor[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local pState =[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]{[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][1] = rs.testBundledInput("back", colors.red),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][2] = rs.testBundledInput("back", colors.white),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][3] = rs.testBundledInput("back", colors.yellow),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][4] = rs.testBundledInput("back", colors.gray)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]}[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function writeAt(x,y,text)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor.setCursorPos(x,y)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor.write(text)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function startMonitor()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor = peripheral.wrap("top")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function drawDisplay()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]monitor.clear()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,1,"***************************")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,2,"* from this quarry *")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,3,"***************************")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,4,"* coal: 0 *")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(1,5,"* Diamonds 0 *")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]function writeCount()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,4," ")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,4,string.format("%i",count))[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]function diamond()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,5," ")[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeAt(16,5,string.format("%i",diamond))[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]


[color=#282828][font=helvetica, arial, sans-serif]function redstoneEvent(p1, p2)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local cState =[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]{[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][1] = rs.testBundledInput("back", colors.red),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][2] = rs.testBundledInput("back", colors.white),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][3] = rs.testBundledInput("back", colors.yellow),[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][4] = rs.testBundledInput("back", colors.gray)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]}[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]if pState[2] == false and cState[2] == true then -- kull + 1[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]count = count + 1[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeCount()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]if pState[1] == false and cState[1] == true then -- i need another count!! can't use this one for both diamonds and coal :/[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]diamond = diamond + 1[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]diamond()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]pState[1] = cState[1][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]pState[2] = cState[2][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]pState[3] = cState[3][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]pState[4] = cState[4][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]startMonitor()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]drawDisplay()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]writeCount()[/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]repeat[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]local event, p1, p2 = os.pullEvent()[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]if event == "redstone" then[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]redstoneEvent(p1, p2)[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]end[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]until event == "char" and p1 == "x" -- x for og avslutte programmet [/font][/color] :P/>/>


[color=#282828][font=helvetica, arial, sans-serif]os.shutdown()[/font][/color]

and here is the error :/

[color=#282828][font=helvetica, arial, sans-serif]startup:54: attempt to perfrom arithmetic __add on function and number[/font][/color]


wtf? that was not what i pasted? :)/>/> is it [code* ] and [/code* ] (ofc without the *)
remiX #10
Posted 18 October 2012 - 09:17 AM
Ain't nobody got time for that (to read all dem lines O_O)

Post on pastebin please.
jag #11
Posted 18 October 2012 - 02:28 PM
here is the code,
–snipped code–


wtf? that was not what i pasted? :P/>/> is it [code* ] and [/code* ] (ofc without the *)
Yes you're correct with the
 part.
But when you paste the code in the text box, and it got colors (text color) it will post those weird [color=#282828][font=helvetica, arial, sans-serif] thingies.
(The truth is that the forum uses [color=#282828][font=helvetica, arial, sans-serif] to change the color of the text (often called BB-code))

So what you do is instead of pasting it with [i]CTRL + V[/i] you do [i]CTRL + SHIFT + V[/i] ([i]CMD + SHIFT + V[/i] on a mac).
tysje #12
Posted 18 October 2012 - 04:07 PM
local count = 0
local diamond = 0
local monitor
local pState =
{
  [1] = rs.testBundledInput("back", colors.red),
  [2] = rs.testBundledInput("back", colors.white),
  [3] = rs.testBundledInput("back", colors.yellow),
  [4] = rs.testBundledInput("back", colors.gray)
}

function writeAt(x,y,text)
  monitor.setCursorPos(x,y)
  monitor.write(text)
end

function startMonitor()
  monitor = peripheral.wrap("top")
end

function drawDisplay()
  monitor.clear()
  writeAt(1,1,"***************************")
  writeAt(1,2,"*    from this quarry     *")
  writeAt(1,3,"***************************")
  writeAt(1,4,"*  coal:       0          *")
  writeAt(1,5,"*  Diamonds    0          *")
end

function writeCount()
  writeAt(16,4,"           ")
  writeAt(16,4,string.format("%i",count))
end
function diamond()
  writeAt(16,5,"           ")
  writeAt(16,5,string.format("%i",diamond))
end


function redstoneEvent(p1, p2)
  local cState =
  {
    [1] = rs.testBundledInput("back", colors.red),
    [2] = rs.testBundledInput("back", colors.white),
    [3] = rs.testBundledInput("back", colors.yellow),
    [4] = rs.testBundledInput("back", colors.gray)
  }

   if pState[2] == false and cState[2] == true then -- kull + 1
      count = count + 1
      writeCount()
   end
   if pState[1] == false and cState[1] == true then -- i need another count!! can't use this one for both diamonds and coal :/
      diamond = diamond + 1
      diamond()
   end

   pState[1] = cState[1]
   pState[2] = cState[2]
   pState[3] = cState[3]
   pState[4] = cState[4]
end

startMonitor()
drawDisplay()
writeCount()

repeat
  local event, p1, p2 = os.pullEvent()
    if event == "redstone" then
     redstoneEvent(p1, p2)
    end
until event == "char" and p1 == "x"  -- x for og avslutte programmet :P/>/>

os.shutdown()

thats the code

Why is the end green? :)/>/>
Ditto8353 #13
Posted 18 October 2012 - 04:49 PM
The end of the code is green because the code tags are not made for Lua so it does not understand the Lua comments –, –[[ ]]
When you have an apostrophe inside a comment, it assumes that it is the start of a string.

--Lua comment, but 'string
will run until the next apostrophe'
--It is unfortunate
tysje #14
Posted 18 October 2012 - 05:57 PM
Thanks ditto8385 :P/>/>

But is there anny one that can anwnser my question? :)/>/>
ChunLing #15
Posted 18 October 2012 - 06:52 PM
I thought he did answer your question. At least, he answered the question about why the code turned green in the end. If you could go back and edit your previous posts, it might be easier to keep track of your questions, and which of them have been answered.
tysje #16
Posted 18 October 2012 - 10:05 PM
hello cc pro's!

i am rather new to cc and lua but i understand some of it and now i'm trying to create a program that counts the difrent ore's and diamonds that comes from my quarry, i have figured how to count one at the time.
but i need moore! right now i'm counting the coal that comes from the quarry (i used to have it count diamonds but there was so little of them so it was booring xD )
I thought he did answer your question. At least, he answered the question about why the code turned green in the end. If you could go back and edit your previous posts, it might be easier to keep track of your questions, and which of them have been answered.

That question.
ChunLing #17
Posted 19 October 2012 - 02:55 AM
Didn't that get answered by like…the first response? And again when you didn't understand it?
Noodle #18
Posted 19 October 2012 - 03:03 AM
Didn't that get answered by like…the first response? And again when you didn't understand it?
Yep..
ChunLing #19
Posted 19 October 2012 - 03:16 AM
Just checking. The long pages full of "" make it hard to tell.