Results 1 to 4 of 4
  1. #1
    Zarox is offline Member
    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Exclamation Cannot find symbol !Help Please!

    So i'm doing a runescape private server and i'm trying to fix some bugs on it, my main problem is getting this fixed
    Java Code:
    Compiling
    src\com\rs\net\decoders\handlers\NPCHandler.java:361: error: cannot find symbol
                                            player.getGrandExchange.openMainScreen()
    ;
                                                  ^
      symbol:   variable getGrandExchange
      location: variable player of type Player
    1 error
    src\com\rs\net\decoders\handlers\NPCHandler.java:361: error: cannot find symbol
                                            player.getGrandExchange.openMainScreen()
    ;
                                                  ^
      symbol:   variable getGrandExchange
      location: variable player of type Player
    1 error
    Complete
    Here is what is inside the file, of what i'm trying to fix:
    Java Code:
    				else if (npc.getId() == 2593)
    					player.getGrandExchange.openMainScreen();
    Help please :l

    Thanks in Advance who ever helps me :l

    P.S. I'm new to this forums :D

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: Cannot find symbol !Help Please!

    Shouldn't it be player.getGrandExchange().openMainScreen(); ?
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    Zarox is offline Member
    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Exclamation Re: Cannot find symbol !Help Please!

    Quote Originally Posted by PhHein View Post
    Shouldn't it be player.getGrandExchange().openMainScreen(); ?
    Yeah, but then i get this

    Java Code:
    Compiling
    src\com\rs\net\decoders\handlers\NPCHandler.java:361: error: non-static method g
    etGrandExchange() cannot be referenced from a static context
                                            Player.getGrandExchange().openMainScreen
    ();
                                                  ^
    src\com\rs\net\decoders\handlers\NPCHandler.java:361: error: cannot find symbol
                                            Player.getGrandExchange().openMainScreen
    ();
                                                                     ^
      symbol:   method openMainScreen()
      location: class GrandExchange
    2 errors
    src\com\rs\net\decoders\handlers\NPCHandler.java:361: error: non-static method g
    etGrandExchange() cannot be referenced from a static context
                                            Player.getGrandExchange().openMainScreen
    ();
                                                  ^
    src\com\rs\net\decoders\handlers\NPCHandler.java:361: error: cannot find symbol
                                            Player.getGrandExchange().openMainScreen
    ();
                                                                     ^
      symbol:   method openMainScreen()
      location: class GrandExchange
    2 errors
    Help please :l

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Cannot find symbol !Help Please!

    In that code you have also changed "player" to Player.

    Look up the API documentation for the Player class. If there is a method getGrandExchange() rather than an instance variable getGrandExchange then that is what you should use. If the method is not static then you should call it using an instance of Player, and not Player.

Similar Threads

  1. cannot find symbol
    By Ericyue in forum New To Java
    Replies: 1
    Last Post: 04-06-2012, 06:00 AM
  2. Cannot find symbol
    By Eleeist in forum New To Java
    Replies: 5
    Last Post: 01-22-2012, 09:36 PM
  3. Cannot find symbol
    By Johanis in forum New To Java
    Replies: 18
    Last Post: 11-09-2010, 09:34 PM
  4. Replies: 9
    Last Post: 10-18-2008, 09:26 PM
  5. Replies: 3
    Last Post: 05-01-2008, 09:30 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
  •