• 0

[JAVA]'else' without 'if' help please


Question

The Error's I get when I compile.


src\org\dementhium\tickable\impl\PlayerAreaTick.java:35: error: 'else' without 'if'
else if (World.getWorld().getAreaManager().getAreaByName("safepk2").contains(player.getLocation())) {
^
src\org\dementhium\tickable\impl\PlayerAreaTick.java:150: error: 'else' without 'if'
else if (World.getWorld().getAreaManager().getAreaByName("Nex").contains(player.getLocation())); {
^
src\org\dementhium\tickable\impl\PlayerAreaTick.java:153: error: 'else' without 'if'
} else {
[/CODE]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

or perhaps you add ';' after "if (condtions)" into something like "if (condtions);"

which make the complier thinks the if part already ended.

Oh yeah! I did not see that! after the getLocation...

Link to comment
Share on other sites

This topic is now closed to further replies.