Unable to find overload for drawline(Int,Int)

Monkey Forums/Monkey Beginners/Unable to find overload for drawline(Int,Int)

SirRollon(Posted 2014) [#1]
Hi,

I can't run any "drawsomething" (rect, line, circle...), I have this error "Unable to find overload for drawline(Int,Int)" everytime time.

Just a quick glimps at the Render part of my code :
Method OnRender:Int()

		Cls()
		SetColor 255, 123, 8
		DrawLine (32, 32)

                Return 0
 
End Method


And I didn't not find in the documentation, what the monkey means with the "overload"...

Thanks for your help :)


Arabia(Posted 2014) [#2]
It means DrawLine expects four arguments as in DrawLine(32,32,100,32)

Some functions can take more or less than the standard number of arguments which is known as overloading, DrawLine is not one of them.


GfK(Posted 2014) [#3]
Drawline() takes four parameters, not two.


SirRollon(Posted 2014) [#4]
Simple as that... Thank you.