Thread: Simple error, I'm probably overlooking..

Results 1 to 5 of 5
  1. #1 Simple error, I'm probably overlooking.. 
    Banned
    Join Date
    Aug 2011
    Posts
    32
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Okay.. I'm getting cannot find symbol errors. I've imported etc. It's telling me the package I created does not exist.


    Heres what imported:

    Code:
    import server.model.players.combat.CastOnOther;
    ( did the same with the other classes, just an example.

    Code:
    src\server\model\players\CombatAssistant.java:8: package server.model.players.co
    mbat does not exist
    import server.model.players.combat.CastOnOther;
                                      ^
    src\server\model\players\packets\ClickingButtons.java:10: package server.model.p
    layers.packets.combat.magic does not exist
    import server.model.players.packets.combat.magic.CastOnOther;
                                                    ^
    src\server\model\players\CombatAssistant.java:2721: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.CombatAssistant
                    if(!Server.playerHandler.players[c.playerIndex].inWild() && !Cas
    tOnOther.castOnOtherSpells(c)) {
                                                                                 ^
    src\server\model\players\CombatAssistant.java:2734: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.CombatAssistant
                    if(!c.inWild() && !CastOnOther.castOnOtherSpells(c)) {
                                       ^
    src\server\model\players\packets\AttackPlayer.java:150: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.AttackPlayer
                            boolean teleother = CastOnOther.castOnOtherSpells(c);
                                                ^
    src\server\model\players\packets\AttackPlayer.java:162: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.AttackPlayer
                                            CastOnOther.teleOtherDistance(c, 1, c.pl
    ayerIndex);
                                            ^
    src\server\model\players\packets\AttackPlayer.java:165: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.AttackPlayer
                                            CastOnOther.teleOtherDistance(c, 1, c.pl
    ayerIndex);
                                            ^
    src\server\model\players\packets\AttackPlayer.java:168: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.AttackPlayer
                                            CastOnOther.teleOtherDistance(c, 2, c.pl
    ayerIndex);
                                            ^
    src\server\model\players\packets\AttackPlayer.java:171: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.AttackPlayer
                                            CastOnOther.castOtherVengeance(c, c.play
    erIndex);
                                            ^
    src\server\model\players\packets\ClickingButtons.java:101: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.ClickingButtons
                                    CastOnOther.teleOtherLocation(c, c.teleotherType
    , false); break;
                                    ^
    src\server\model\players\packets\ClickingButtons.java:103: cannot find symbol
    symbol  : variable CastOnOther
    location: class server.model.players.packets.ClickingButtons
                                    CastOnOther.teleOtherLocation(c, c.teleotherType
    , true); break;
                                    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    11 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    It looks like you are packaging your server. If the package is right, and its saying its not, double check the package in the files you are importing.


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2011
    Posts
    178
    Thanks given
    16
    Thanks received
    41
    Rep Power
    30
    do you not need to add something like:
    Code:
    private Combat combat = new Combat(this);
    but i might be wrong
    Reply With Quote  
     

  4. #4  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    Quote Originally Posted by 'Bender View Post
    do you not need to add something like:
    Code:
    private Combat combat = new Combat(this);
    but i might be wrong
    There are many options you have. You can do that if you want. Or you can do it how you did it and specify which player to do it to. I don't like calling things staticly though.


    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Aug 2011
    Posts
    32
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Fixed this, forgot to tell you guys, thanks for helping me!
    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

Similar Threads

  1. Simple Average program, simple error?
    By Sieg in forum Tutorials
    Replies: 6
    Last Post: 01-02-2011, 02:50 PM
  2. Simple run error?
    By Plazzy in forum Help
    Replies: 5
    Last Post: 06-19-2010, 08:37 AM
  3. Simple Error
    By nickm175 in forum Help
    Replies: 4
    Last Post: 03-10-2010, 04:27 AM
  4. Missing/Overlooking something.
    By Kenshin1388 in forum Help
    Replies: 1
    Last Post: 11-30-2009, 03:22 AM
  5. 510 simple error but cant fix Oo
    By lol ftw lol in forum Help
    Replies: 3
    Last Post: 04-30-2009, 01:34 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •