Thread: [pi] Help please [rep++ and thanks]

Results 1 to 8 of 8
  1. #1 [pi] Help please [rep++ and thanks] 
    Registered Member susurik's Avatar
    Join Date
    Jan 2011
    Posts
    253
    Thanks given
    140
    Thanks received
    13
    Rep Power
    2
    Hello. Can anyone tell me what do i need to import (i guess) to fix this error:

    Code:
    src\server\model\players\packets\ClickingButtons.java:379: cannot find symbol
    symbol  : variable playerName
    location: class server.model.players.packets.ClickingButtons
                                            MadTurnipConnection.addDonateItems(this,
    playerName);
    
    ^
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2010
    Posts
    536
    Thanks given
    61
    Thanks received
    25
    Rep Power
    4
    import server.model.players.*;
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member susurik's Avatar
    Join Date
    Jan 2011
    Posts
    253
    Thanks given
    140
    Thanks received
    13
    Rep Power
    2
    Still same error.

    What do i want to add is, that to claim donation reward you have to talk with NPC instead of adding it in public void initialize()

    Thank you!
    Reply With Quote  
     

  5. #4  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    Did you declare the method.
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member susurik's Avatar
    Join Date
    Jan 2011
    Posts
    253
    Thanks given
    140
    Thanks received
    13
    Rep Power
    2
    Umm no i havent, at least not in clickingbuttons.java
    I just took the code from public void initialize() in client.java
    And added it in clickingbuttons + added import import server.util.MadTurnipConnection;

    Thats all.
    Reply With Quote  
     

  8. #6  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    Well yeah, that's probably your problem. Declare first :3.
    Reply With Quote  
     

  9. Thankful user:


  10. #7  
    Registered Member susurik's Avatar
    Join Date
    Jan 2011
    Posts
    253
    Thanks given
    140
    Thanks received
    13
    Rep Power
    2
    The best part is that i dont know what i need to declare... Lol feeling stupid.
    Reply With Quote  
     

  11. #8  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    Well , it's simple, if you're going to use a variable/method in a statement or class, you first need to declare the void and what it does in one of your other classes.

    In this case playerName is your variable, so it'd look something like;

    publicVoid playerName
    Or something of the sort
    Reply With Quote  
     

  12. Thankful user:



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
  •