Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

i need help

Discussion in 'Scripting' started by _Evasi0n, Apr 19, 2015.

  1. _Evasi0n

    _Evasi0n

    Joined:
    Apr 13, 2015
    Posts:
    9
    i have a error called: Assets/scripting/walk.js(7,38): BCE0019: 'of' is not a member of 'int'.

    and i don't no what i can do about it
     
  2. _Evasi0n

    _Evasi0n

    Joined:
    Apr 13, 2015
    Posts:
    9
    and this is the code :

    public var jumpPower : float = 1000 .of;
     
  3. passerbycmc

    passerbycmc

    Joined:
    Feb 12, 2015
    Posts:
    1,739
    Would help if you showed the code, but error is most likely because you have "of" where you should have "0f"
     
  4. _Evasi0n

    _Evasi0n

    Joined:
    Apr 13, 2015
    Posts:
    9
  5. _Evasi0n

    _Evasi0n

    Joined:
    Apr 13, 2015
    Posts:
    9
    but now get the error : Assets/scripting/walk.js(7,37): BCE0043: Unexpected token: ..

    sorry i am just a beginner
     
  6. passerbycmc

    passerbycmc

    Joined:
    Feb 12, 2015
    Posts:
    1,739
    Code (JavaScript):
    1. var jumpPower : float = 1000.0f;
    Also please use the code tags
     
    Dantus likes this.