HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

zinc setup

04-16-2010, 03:49 PM#1
Bee (aka Jass.expert)
sry for my bad english
hello, guys. i have problem with zinc setup

what i am doing?
1. download jngp 5d (from link in 1st post)
2. and using it ;p

BUT. i dont know why
compiler shows syntax mystakes

zinc code (took from zinc manual) :

Collapse Zinc:
    library Factorial
    {
        /*
           Calculates the factorial of a number
        
        */
        public function Factorial(integer n) -> integer
        {
            integer result=1, i;
            for ( 1 <= i <= n)
                result = result * i;

            return result;
        }
    }
// o.o wtf red txt ???!!!
compiler shows me that:


can u tell me why ?
04-19-2010, 08:42 AM#2
Anitarf
You need to put your code between //! zinc and //! endzinc tags.
04-19-2010, 11:15 AM#3
Deaod
And you should update JassHelper. Instructions for that should so in the JassHelper thread.