Jump to content
  • 0
Sign in to follow this  
camtheman1

Method Compiler Errors

Question

For some reason I've been working on this for quite some time and can't seem to solve them. I've been working on adding a "Vote4Cash" system for my 667/718 server.

It yields these errors every time - [CODE]starting...
src\com\rs\game\player\content\Commands.java:3374: error: cannot find symbol
VoteReward reward = Launcher.voteChecker
.getReward(DisplayName.replaceAll(" ", "_"));

^
symbol: method replaceAll(String,String)
location: class DisplayName
src\com\rs\game\player\content\Commands.java:3374: error: cannot find symbol
VoteReward reward = Launcher.voteChecker
.getReward(DisplayName.replaceAll(" ", "_"));
^
symbol: variable voteChecker
location: class Launcher
Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
2 errors
Press any key to continue . . .[/CODE]

I realize what they mean, but can't fix them. Does anyone have the replaceAll method, and know where I need to put it? Also I'm not entirely sure about the the voteChecker symbol, it is declared in the Launcher class so I don't see the problem.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Sign in to follow this  

×