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

Solved Unexpected ';' (can't see anything wrong)

Comments in 'Plugin Development' started by PocketKiller, Feb 27, 2016.

  1. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Hello,

    I am making an SG plugin, that would be not laggy, and this is the error...
    Code:
    [23:12:11] critical> ParseError: "syntax error, unexpected ';'" (EXCEPTION) in "/plugins/DevTools/src/PocketKiller/SurvivalChests/command/SurvivalChestsCmd" at line 27
    [23:12:11] debug> #0 /plugins/DevTools/src/PocketKiller/SurvivalChests/Loader(22): spl_autoload_call(string PocketKiller\SurvivalChests\command\SurvivalChestsCmd)
    [23:12:11] debug> #1 /src/pocketmine/plugin/PluginBase(91): PocketKiller\SurvivalChests\Loader->onEnable(boolean)
    [23:12:11] debug> #2 /plugins/DevTools_v1.10.0 (7).phar/src/FolderPluginLoader/FolderPluginLoader(125): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
    [23:12:11] debug> #3 /src/pocketmine/plugin/PluginManager(578): FolderPluginLoader\FolderPluginLoader->enablePlugin(PocketKiller\SurvivalChests\Loader object)
    [23:12:11] debug> #4 /src/pocketmine/Server(1957): pocketmine\plugin\PluginManager->enablePlugin(PocketKiller\SurvivalChests\Loader object)
    [23:12:11] debug> #5 /src/pocketmine/Server(1943): pocketmine\Server->enablePlugin(PocketKiller\SurvivalChests\Loader object)
    [23:12:11] debug> #6 /src/pocketmine/Server(1759): pocketmine\Server->enablePlugins(integer 1)
    [23:12:11] debug> #7 /src/pocketmine/PocketMine(449): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Taha\Desktop\Servers\Test Server\, string C:\Users\Taha\Desktop\Servers\Test Server\, string C:\Users\Taha\Desktop\Servers\Test Server\plugins\)
    [23:12:11] system> Disabling SurvivalChests v1.0.0
    
    
    can't see anything wrong...
    and indev code.. https://github.com/PocketKiller/SurvivalChests

    Thanks!
  2. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Case are another to use { and }, you made a syntax error, to many cases and to less breaks, I cant also understand why there are many cases in a case in a switch function.
  3. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    no need for cases to have {}...
  4. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    PHP:
    if(!$this->plugin->arenaExists($args[1]){
  5. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Missing )... Thanks!
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    ... You should use an IDE.
    PocketKiller and Vaivez66 like this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. Learn PHP before further naively telling a person playing with imaginary numbers that square root negative one has no solution.
    applqpak likes this.
  8. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Nah, I love challenging myself.
  9. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Use an IDE is pretty challenging too...
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is not challenge or not. It is convenient or not.
    Also, you can understand the language and the API much faster with an IDE.
    applqpak and Vaivez66 like this.
  11. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    But I love my Text Editor's style and usage :/ Ok...
  12. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Well, everyone favorites...

Share This Page

Advertisement