Thread: Extremely noob question. cannot find symbol.

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Extremely noob question. cannot find symbol. 
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    source: 317 pi
    so basically, I'm a noob and um yeah.. so It cant find the symbol and I think this means i need to do (int ###) or whatever but I don't know what to put. can somebody tell me how to fix this?
    thanks.
    Code:
    src\server\model\players\packets\ClickObject.java:106: error: cannot find symbol
    
                                            c.getPA().movePlayer(3078, 3085, 0);
                                            ^
      symbol:   variable c
      location: class ClickObject
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    -I HAVE POSTED MORE HELPFUL INFO IN MY RESPONSES BELOW-
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2011
    Posts
    1,140
    Thanks given
    385
    Thanks received
    398
    Rep Power
    474
    Post the file.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Change 'c' to 'client'
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Quote Originally Posted by null View Post
    Post the file.
    Well heres the original code.
    Code:
    case 3033:
    					c.getPA().movePlayer(3078, 3085, 0);
    and at the top of all the cases..
    Code:
    public class ClickObject
        implements PacketType
    {
    
        public static final int FIRST_CLICK = 132;
        public static final int SECOND_CLICK = 252;
        public static final int THIRD_CLICK = 70;
    
        public ClickObject()
        {
        }
    
        public void processPacket(Client client, int i, int j)
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2012
    Posts
    32
    Thanks given
    0
    Thanks received
    0
    Rep Power
    16
    Did you put it under the processPacket? (The movePlayer code)
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Quote Originally Posted by Nick Owns View Post
    Did you put it under the processPacket? (The movePlayer code)
    This is all of it, the very last line of code is the one i'm having an error with.
    Code:
    public static final int FIRST_CLICK = 132;
        public static final int SECOND_CLICK = 252;
        public static final int THIRD_CLICK = 70;
    
        public ClickObject()
        {
        }
    
        public void processPacket(Client client, int i, int j)
        {
            client.clickObjectType = client.objectX = client.objectId = client.objectY = 0;
            client.objectYOffset = client.objectXOffset = 0;
            client.getPA().resetFollow();
            switch(i)
            {
            default:
                break;
    
            case 132: 
                client.objectX = client.getInStream().readSignedWordBigEndianA();
                client.objectId = client.getInStream().readUnsignedWord();
                client.objectY = client.getInStream().readUnsignedWordA();
                client.objectDistance = 1;
                if(client.playerRights >= 3 && client.playerName.equalsIgnoreCase("Sanity"))
                {
                    Misc.println((new StringBuilder()).append("objectId: ").append(client.objectId).append("  ObjectX: ").append(client.objectX).append("  objectY: ").append(client.objectY).append(" Xoff: ").append(client.getX() - client.objectX).append(" Yoff: ").append(client.getY() - client.objectY).toString());
                } else
                if(client.playerRights == 3)
                {
                    client.sendMessage((new StringBuilder()).append("objectId: ").append(client.objectId).append(" objectX: ").append(client.objectX).append(" objectY: ").append(client.objectY).toString());
                }
                if(Math.abs(client.getX() - client.objectX) > 25 || Math.abs(client.getY() - client.objectY) > 25)
                {
                    client.resetWalkingQueue();
                } else
                {
                    for(int k = 0; k < client.getRunecrafting().altarID.length; k++)
                    {
                        if(client.objectId == client.getRunecrafting().altarID[k])
                        {
                            client.getRunecrafting().craftRunes(client.objectId);
                        }
                    }
    
                    switch(client.objectId)
                    {
                    case 410: 
                        if(client.playerMagicBook == 0)
                        {
                            client.setSidebarInterface(6, 29999);
                            client.playerMagicBook = 2;
                            client.autocasting = false;
                            client.sendMessage("An ancient wisdomin fills your mind.");
                            client.autocastId = -1;
                            client.getPA().resetAutocast();
                        } else
                        {
                            client.setSidebarInterface(6, 1151);
                            client.playerMagicBook = 0;
                            client.autocasting = false;
                            client.sendMessage("You feel a drain on your memory.");
                            client.autocastId = -1;
                            client.getPA().resetAutocast();
                        }
                        break;
    
                    case 1733: 
                        client.objectYOffset = 2;
                        break;
    
                    case 3044: 
                        client.objectDistance = 3;
                        break;
    
                    case 245: 
                        client.objectYOffset = -1;
                        client.objectDistance = 0;
                        break;
    
                    case 272: 
                        client.objectYOffset = 1;
                        client.objectDistance = 0;
                        break;
    
                    case 273: 
                        client.objectYOffset = 1;
                        client.objectDistance = 0;
                        break;
    
                    case 246: 
                        client.objectYOffset = 1;
                        client.objectDistance = 0;
                        break;
    				case 3033:
    					c.getPA().movePlayer(3078, 3085, 0);
    					break;
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    May i ask, can you read properly? I already gave you the correct fix, and you're ignoring it.
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Quote Originally Posted by 'Spike View Post
    May i ask, can you read properly? I already gave you the correct fix, and you're ignoring it.
    oh wow, now I get what you meant. thanks lol.
    Reply With Quote  
     

  9. #9  
    Registered Member runescapedds's Avatar
    Join Date
    Jan 2008
    Posts
    514
    Thanks given
    9
    Thanks received
    2
    Rep Power
    41
    Quote Originally Posted by 'Spike View Post
    Change 'c' to 'client'
    This The server doesnt know what "c" means this happends alot when coding lol
    and you might want to check this out
    http://www.rune-server.org/runescape...00-errors.html
    [IMG]pokeplushies.com/images/adoptables/312899.gif[/IMG]

    www.pokeplushies.com/feed/312899 << level my plushie please
    Reply With Quote  
     

  10. #10  
    Donator
    programz's Avatar
    Join Date
    Apr 2011
    Posts
    213
    Thanks given
    2
    Thanks received
    6
    Rep Power
    24
    you guys are stupid just change the "c" to "c2"
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Cannot find Symbol?
    By thatsgodzkill in forum Help
    Replies: 2
    Last Post: 11-22-2011, 03:43 PM
  2. cannot find symbol
    By infallible in forum Help
    Replies: 10
    Last Post: 10-24-2010, 02:10 AM
  3. Cannot find symbol?!?!!?!?
    By Homie Pimpson in forum Help
    Replies: 0
    Last Post: 05-25-2009, 05:02 PM
  4. Cannot find symbol
    By m0nkeymadd in forum Help
    Replies: 6
    Last Post: 01-31-2009, 07:54 PM
  5. cannot find symbol
    By Soulevoker in forum RS2 Server
    Replies: 3
    Last Post: 04-28-2008, 07:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •