Unable to find overload for drawline(Int,Int)
Monkey Forums/Monkey Beginners/Unable to find overload for drawline(Int,Int)
| ||
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 :) |
| ||
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. |
| ||
Drawline() takes four parameters, not two. |
| ||
Simple as that... Thank you. |