Zinc question.

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
This may be the wrong section of the forum for it, but it seems the most intelligent and active people are here.

:


I can't find a full library for Zinc. I need to basically set a variable that is equal to lets say player red. Anyone able to help me? Thanks. I could only find a sort of manual with a few demonstrations and basic examples but no full syntax library.
 
Personally, I've never used Zinc. However, according to its manual, it's as simple as this:

JASS:
//! zinc
library MyLib
{
    function onInit()
    {
        player varName = Player(0); // This declares a player variable, and it is assigning the Player Red to it.
        varName = Player(1); // This assigns Player Blue to it.
    }
}
//! endzinc
You simply don't need to use the set keyword, and must add a semi-colon ; in the end of a statement.
 
Last edited:
Personally, I've never used Zinc. However, according to its manual, it's as simple as this:

JASS:
//! zinc
library MyLib
{
    function onInit()
    {
        player varName = Player(0); // This declares a player variable, and it is assigning the Player Red to it.
        varName = Player(1); // This assigns Player Blue to it.
    }
}
//! endzinc
You simply don't need to use the set keyword, and must add a semi-colon ; in the end of a statement.

Can you link me the manual?
 
Status
Not open for further replies.
Back
Top