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

[PaintUtils] Useful tutorial or how to?

Started by Stormkrow, 14 November 2012 - 05:07 PM
Stormkrow #1
Posted 14 November 2012 - 06:07 PM
Any one able to find a helpful tutorial on using the paintutils API?? I cant seem to be able to use them to well, specifically ,i get the error : paintutils : 46 : bad argument : double expected, got nil.
I was using the paintutils.drawLine() so would this mean i made a no-no in the parameters?

Thanks
remiX #2
Posted 14 November 2012 - 06:15 PM
function drawLine( startX, startY, endX, endY, nColour )
Do you have all required parameters?
Stormkrow #3
Posted 14 November 2012 - 08:19 PM
Ahhhh there we go!!! Works fine now :P/>/> The help API for paintutils didnt mention the end parameters ;/ weird, anyway thanks!
remiX #4
Posted 14 November 2012 - 11:01 PM
Haha, cool.

When you get an error which involves an API, go check that function in the API and check what parameters it needs.