Tutorials with Monkey pro

Monkey Forums/Monkey Programming/Tutorials with Monkey pro

diban(Posted 2011) [#1]
Hi, I'm Trying The tutorials that comes with monkey pro
I always got a Error : Main function must be of type Main:Int()

I'm Confused before there where working on monkey demo




degac(Posted 2011) [#2]
If I remember correctly, if you 'build' for HTML5 there's no problem with 'void'; otherwise if your target is GLFW you get an error (probably there's no 'void' type in CS...

So the solution? just use :Int.

Cheers


diban(Posted 2011) [#3]
Oke :int() works also For HTML5
Thank you .

:)


therevills(Posted 2011) [#4]
All App overridden methods should be returned as an Int and also the Main function should return an Int.


diban(Posted 2011) [#5]
@eveybody
Oke Thanks for that Do you know where i can find information to learn because the one comming with monkey are not updated for a beginner like me everything i wrote whas giving errors ::: Do you know a better way to understand this language i look everywhere on the forums. Oke i get this and that but....

Thank you all