Thread: Error in my compile simple fix? 667

Results 1 to 7 of 7
  1. #1 Error in my compile simple fix? 667 
    Registered Member
    Join Date
    Jun 2013
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hi.

    i have some problems with my compiler. it give's me 1 error.

    im a basic coder so can you tell me how you solved this so i can learn from it


    AND YES I USE POANIZER PROJECT 667, DONT CALL ME A NOOB. dont come here and tell me that only noobs use 667's.

    here is my error:

    Code:
     src\com\rs\game\player\content\AshScattering.java:66: error: cannot find symbol
                    if (player.getAshDelay() >
                              ^
      symbol:   method getAshDelay()
      location: variable player of type Player
    Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.
    
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    compiled Player folder
    src\com\rs\game\player\content\AshScattering.java:66: error: cannot find symbol
                    if (player.getAshDelay() >
                              ^
      symbol:   method getAshDelay()
      location: variable player of type Player
    Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.
    
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    compiled Server folder
    src\com\rs\game\player\content\AshScattering.java:66: error: cannot find symbol
                    if (player.getAshDelay() >
                              ^
      symbol:   method getAshDelay()
      location: variable player of type Player
    Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.
    
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    compiling Dialogues
    src\com\rs\game\player\content\AshScattering.java:66: error: cannot find symbol
                    if (player.getAshDelay() >
                              ^
      symbol:   method getAshDelay()
      location: variable player of type Player
    Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.
    
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    compiled Main Server Folder
    src\com\rs\game\player\content\AshScattering.java:66: error: cannot find symbol
                    if (player.getAshDelay() >
                              ^
      symbol:   method getAshDelay()
      location: variable player of type Player
    Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.
    
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    compiled Main Server Folder
    src\com\rs\game\player\content\AshScattering.java:66: error: cannot find symbol
                    if (player.getAshDelay() >
                              ^
      symbol:   method getAshDelay()
      location: variable player of type Player
    Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations.
    
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Compiled all Successfully
    Press any key to continue . . .


    here is my ashscattering.java with maybe the problem in it
    Code:
    }
    	
    	public static boolean scatter(final Player player, int slotId) {
    		final Item item = player.getInventory().getItem(slotId);
    		if (item == null || Ash.forId(item.getId()) == null)
    			return false;
    		if (player.getAshDelay() >
     Utils.currentTimeMillis())
    			return true;
    		final Ash ash = Ash.forId(item.getId());
    		player.addStopDelay(4);
    		player.setNextAnimation(new Animation(445));
    		player.setNextGraphics(ash.getGraphics());
    		WorldTasksManager.schedule(new WorldTask() {

    i hope you can solve this i really appreciate it
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2007
    Age
    32
    Posts
    2,396
    Thanks given
    5
    Thanks received
    436
    Rep Power
    902
    add to Player.java
    public int getAshDelay(){
    return Integer.MAX_VALUE;
    }
    Hyperion V2 Martin's Updates.

    Scar says:
    i hate it when it hits your face
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2013
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Martin View Post
    add to Player.java
    Thx man it worked

    but could you please explain how did you know that? so i can learn from it.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Quote Originally Posted by permban4you View Post
    Thx man it worked

    but could you please explain how did you know that? so i can learn from it.
    Read this
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2013
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Adam A View Post
    hehehe im from the netherlands...
    what i mean was. can you explain. what the problem was
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Quote Originally Posted by permban4you View Post
    hehehe im from the netherlands...
    what i mean was. can you explain. what the problem was
    There was no problem, you were missing a getter. Read what I sent you to get a better understanding.
    Reply With Quote  
     

  7. #7  
    🎶 As you're falling down 🎶


    uint32_t's Avatar
    Join Date
    Feb 2015
    Posts
    1,396
    Thanks given
    6,177
    Thanks received
    776
    Rep Power
    5000
    Quote Originally Posted by permban4you View Post
    hehehe im from the netherlands...
    what i mean was. can you explain. what the problem was
    You were trying to call a function that did not exist. Thus, it had to be created to exist and be able to be called.
    Quote Originally Posted by Idiot Bird View Post
    Quote Originally Posted by Velocity View Post
    lol np mate looks like the community brought ur rep down to ur IQ
    Not too sure about that, it's at 0 . It would have to go minus to even be remotely close to his IQ.
    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. 5 Errors in my compiler
    By fizzerxdev in forum Help
    Replies: 6
    Last Post: 02-15-2016, 11:03 PM
  2. Replies: 9
    Last Post: 08-04-2013, 02:58 PM
  3. 1 tiny error in my compiler? huh?
    By grossly in forum Help
    Replies: 5
    Last Post: 06-21-2013, 10:26 PM
  4. Replies: 2
    Last Post: 12-21-2012, 07:55 AM
  5. Replies: 5
    Last Post: 07-24-2011, 03:20 PM
Tags for this Thread

View Tag Cloud

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