Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unexpected end of file

Comments in 'Plugin Development' started by nfell2009, Jul 6, 2015.

  1. nfell2009
    Offline

    nfell2009 New Member

    Joined:
    Jul 5, 2015
    Posts:
    10
    Minecraft User:
    nfell2009
  2. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    220
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    You are calling your variable.... You cant do that
    LDX and PEMapModder like this.
  3. nfell2009
    Offline

    nfell2009 New Member

    Joined:
    Jul 5, 2015
    Posts:
    10
    Minecraft User:
    nfell2009
    Am on IRC, and apparently the problem is the use of $this. I call that variable so my other scripts can use it.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You don't need to add the parentheses.
  5. nfell2009
    Offline

    nfell2009 New Member

    Joined:
    Jul 5, 2015
    Posts:
    10
    Minecraft User:
    nfell2009
    The what? o_O
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Parentheses are ()

    What? Where?
    nfell2009 likes this.
  7. nfell2009
    Offline

    nfell2009 New Member

    Joined:
    Jul 5, 2015
    Posts:
    10
    Minecraft User:
    nfell2009
    I got it storted now. just help on how to use $this outside my main class :p

Share This Page

Advertisement