if (playerCommand.equalsIgnoreCase("resetslayertask") ) {
c.taskAmount = -1;
c.slayerTask = 0;
}
|
hi im trying to make a command that resets your slayer task my code look like this
if (playerCommand == (resetslayertask)) {
c.taskAmount = -1;
c.slayerTask = 0;
}
i compile and get this
src\server\model\players\packets\Commands.java:154 : cannot find symbol
symbol : variable resetslayertask
location: class server.model.players.packets.Commands
if (playerCommand == (resetslayertask)) {
^
src\server\model\players\packets\Commands.java:154 : illegal start of type
if (playerCommand == (resetslayertask)) {
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Press any key to continue . . .
how to fix?
if (playerCommand.equalsIgnoreCase("resetslayertask") ) {
c.taskAmount = -1;
c.slayerTask = 0;
}
Lmao are you serious? There are no errors... it compiled fine, but you just made my sig
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |