Jump to content
  • 0
Sign in to follow this  
kelvendros

Unreachable Statement Error

Question

Hey everyone im getting this error!

starting...
src\com\rs\game\player\content\MaxedUser.java:12: error: unreachable statement
return player.completedFightKiln = true;
^
1 error
Press any key to continue . . .

And this is the code for it!

Can anyone tell me how to fix it? or show?

public static boolean isCompletionist(Player player) {
return player.getSkills().getTotalLevel(player) == 2496;
return player.completedFightKiln = true;
}

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
You can't have "return" twice in a row.


[CODE]
[COLOR=#333333]public static boolean isCompletionist(Player player) {[/COLOR]
[COLOR=#333333] if (player.getSkills().getTotalLevel(player) == 2496) {[/COLOR]
[COLOR=#333333] player.completedFightKiln = true;
return true;
[/COLOR] }else{
return false;
}
[COLOR=#333333]}
[/COLOR][/CODE]

Share this post


Link to post
Share on other sites
  • 0
Thanks much dj. Uhm idk if you know much about the Rune Evo3 source. But I am also wanting to make it where all the achievements that the source has is required for completionist cape as well. If you know can you help me out please? Thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this  

×