Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    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,741
    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,741
    Code (JavaScript):
    1. var jumpPower : float = 1000.0f;
    Also please use the code tags
     
    Dantus likes this.