Jump to content




[PaintUtils] Useful tutorial or how to?


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

#1 Stormkrow

  • Members
  • 50 posts
  • LocationSouth Africa

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

#2 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 14 November 2012 - 06:15 PM

function drawLine( startX, startY, endX, endY, nColour )
Do you have all required parameters?

#3 Stormkrow

  • Members
  • 50 posts
  • LocationSouth Africa

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!

#4 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users