int Sound = Integer.parseInt(command.substring(3));
<--------->
int Sound = Integer.parseInt(playerCommand.substring(3));
|
i tryed adding command to play sounds
if (playerCommand.startsWith("fs")) {
try {
int Sound = Integer.parseInt(command.substring(3));
c.frame174(Sound, 000, 000);
c.sendMessage("@whi@Now Playing:"+Sound);
} catch (Exception e) {
c.sendMessage("Try entering a sound ID!");
}
}
i got this error and i dont really know what to do..
------ Compiling ------
.\server\model\players\packets\Commands.java:363: cannot find symbol
symbol : variable command
location: class server.model.players.packets.Commands
int Sound = Integer.parseInt(command.substring(3));
^
1 error
Press any key to continue . . .
im using emulous base
int Sound = Integer.parseInt(command.substring(3));
<--------->
int Sound = Integer.parseInt(playerCommand.substring(3));
ty. works now.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |