zinc..endzinc preprocessor
Zinc and vJass code must be kept separate from each other. One way is using a vJass preprocessor command to tell it where zinc code begins and ends. I do not prefer this method over zinc import, but it should be good for people that can't adapt to working outside of WE (and therefore require newgen pack).
It is easy, if you wish to code in Zinc, you must first use a //! zinc
preprocessor. However, you must also specify where the code ends, and thus add a //! endzinc
preprocessor.
//! zinc
library HelloWorld
{
function onInit()
{
BJDebugMsg("Hello World");
}
}
//! endzinc
I assume you got newgen pack installed (and jasshelper 0.9.Z.0 or greater), try to put this code in some "trigger", then test the map and see your first Zinc program at work.
Last modified: 16 October 2024