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

Super annoying message!

Comments in 'Plugin Development' started by Calrizer, May 27, 2015.

  1. Calrizer
    Offline

    Calrizer Active Member

    Joined:
    Jan 17, 2015
    Posts:
    102
    Minecraft User:
    callumdrain
    Hi people of PocketMine,

    I'm developing a plugin and whenever I run it it returns this error...

    unexpected '$event' (T_VARIABLE)

    Even though there is no $event in the line of code that error is referring to.
  2. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    did u do something to variables? and where did it say error in console?
  3. Jon
    Offline

    Jon Active Member Plugin Developer

    Joined:
    Sep 1, 2013
    Posts:
    201
    Plugins:
    3
    Minecraft User:
    Heromine14
    You should show the code or part of it and explain some info like what function are you using
  4. Calrizer
    Offline

    Calrizer Active Member

    Joined:
    Jan 17, 2015
    Posts:
    102
    Minecraft User:
    callumdrain
    Sorry about not showing any code, here it is:
    Screen Shot 2015-05-27 at 17.40.52.png
    It's in-between those two lines where the error is detecting the variable $event
    Last edited: May 27, 2015
  5. Calrizer
    Offline

    Calrizer Active Member

    Joined:
    Jan 17, 2015
    Posts:
    102
    Minecraft User:
    callumdrain
    Heres the full section...
    Screen Shot 2015-05-27 at 17.42.41.png
    The context of this code is to teleport the player to a world from a sign.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Fo the trillionth time why do people think a block ID could be an item ID? :mad::mad::mad::mad::mad::mad::mad::mad::mad::mad:
    EvolSoft, 64FF00, GmWM and 3 others like this.
  7. Calrizer
    Offline

    Calrizer Active Member

    Joined:
    Jan 17, 2015
    Posts:
    102
    Minecraft User:
    callumdrain
    Do you have a solution for my problem??
  8. Calrizer
    Offline

    Calrizer Active Member

    Joined:
    Jan 17, 2015
    Posts:
    102
    Minecraft User:
    callumdrain
    No worries guys, I got it working!:)
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    @PEMapModder , I know you are upset...
    64FF00 likes this.
  10. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    Why are you returning the value when the object is not a sign?? It's pointless.
    PEMapModder and 64FF00 like this.

Share This Page

Advertisement