kelvendros 0 #1 Posted August 23, 2014 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
0 Friss 1 #2 Posted August 23, 2014 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 kelvendros 0 #3 Posted August 23, 2014 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
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