Dock =LL.getVariables().getFloat(“Dock”)

Dock =LL.getVariables().getFloat(“Dock”)

if (Dock == ‘1’) { LL.getVariables().edit().setFloat(“Dock”,” “0”).commit();

}

else {LL.getVariables().edit().setFloat(“Dock”,” “1”).commit();

}

Help TrianguloY​

I have syntax error

]]>
(Next Post) »

7 Commentsto Dock =LL.getVariables().getFloat(“Dock”)

  1. Anonymous says:

    < ![CDATA[

    “Missing semicolon at line 1” ?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    When setting the values you have an extra ” in both lines. Also you are setting a float so no need to pass the numbers as string

    ]]>

  3. Anonymous says:

    < ![CDATA[

    LOL, I didn’t see that there were lines behind “Read more” !

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Pierre Hébert I thought the semicolon was not mandatory in JS?

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Benoît de Chezelles right!

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Oh really I didn’t noticed the semi colon added


    So now fine


    Thank you all

    ]]>

  7. Anonymous says:

    < ![CDATA[

    TrianguloY you are really Fan-Tas-Tic !

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *