Thread: help with error

Results 1 to 3 of 3
  1. #1 help with error 
    Retard Strength


    Join Date
    Dec 2007
    Posts
    1,539
    Thanks given
    32
    Thanks received
    74
    Rep Power
    97
    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
    Reply With Quote  
     

  2. #2  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    int Sound = Integer.parseInt(command.substring(3));

    <--------->

    int Sound = Integer.parseInt(playerCommand.substring(3));
    Reply With Quote  
     

  3. #3  
    Retard Strength


    Join Date
    Dec 2007
    Posts
    1,539
    Thanks given
    32
    Thanks received
    74
    Rep Power
    97
    ty. works now.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •