Thread: 317 PI Compiling error 2 and Degrading barrows?

Results 1 to 7 of 7
  1. #1 317 PI Compiling error 2 and Degrading barrows? 
    Registered Member Cody289's Avatar
    Join Date
    May 2012
    Posts
    385
    Thanks given
    11
    Thanks received
    17
    Rep Power
    14
    So i tried to add the rule book but when i compile i get this error

    Code:
    src\server\model\players\PlayerAssistant.java:168: cannot find symbol
    symbol  : variable text8134
    location: class server.model.players.PlayerAssistant
            for (int x = 0; x < text8134.length; x++) {
                                ^
    src\server\model\players\PlayerAssistant.java:169: cannot find symbol
    symbol  : variable text8134
    location: class server.model.players.PlayerAssistant
                sendFrame126("", text8134[x]);
                                 ^
    src\server\model\players\packets\ClickingButtons.java:1698: cannot find symbol
    symbol  : variable itemId
    location: class server.model.players.packets.ClickingButtons
                                                    if (itemId == 757) {
                                                        ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Press any key to continue . . .

    And the second part with degrading barrows, i want to add it so when you put on barrows it degrades to 100,
    Then after a while of wearing it in combat degrades to 0 so you need to go repair it.

    If anyone can help thanks ill make sure to rep!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2011
    Posts
    189
    Thanks given
    6
    Thanks received
    29
    Rep Power
    52
    The errors clearly tell you what is wrong... :L

    Code:
    PlayerAssistant.java:168: cannot find symbol
    symbol  : variable text8134
    The variable "text8134" doesn't exists in PlayerAssistant, hence the "cannot find symbol." Are you using a tutorial to add this? If so, search through it for that variable and put it where the tutorial tells you. Otherwise, I have no idea what "text8134" is or what it's used for.

    Code:
    ClickingButtons.java:1698: cannot find symbol
    symbol  : variable itemId
    It's the same thing for this error. itemId isn't defined in ClickingButtons.java. If you added this as part of a tutorial go back and find out where itemId is supposed to be defined.
    Reply With Quote  
     

  3. #3  
    Registered Member Cody289's Avatar
    Join Date
    May 2012
    Posts
    385
    Thanks given
    11
    Thanks received
    17
    Rep Power
    14
    Quote Originally Posted by 3959 View Post
    The errors clearly tell you what is wrong... :L

    Code:
    PlayerAssistant.java:168: cannot find symbol
    symbol  : variable text8134
    The variable "text8134" doesn't exists in PlayerAssistant, hence the "cannot find symbol." Are you using a tutorial to add this? If so, search through it for that variable and put it where the tutorial tells you. Otherwise, I have no idea what "text8134" is or what it's used for.

    Code:
    ClickingButtons.java:1698: cannot find symbol
    symbol  : variable itemId
    It's the same thing for this error. itemId isn't defined in ClickingButtons.java. If you added this as part of a tutorial go back and find out where itemId is supposed to be defined.

    This is the exact tutorial http://www.rune-server.org/runescape...l-snippet.html i followed it exactly as he said.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2011
    Posts
    189
    Thanks given
    6
    Thanks received
    29
    Rep Power
    52
    The "text8134" is used to clear out whatever text is already in the interface before you add your rules to it. Not sure why the tutorial maker left it out. >.>
    Reply With Quote  
     

  5. #5  
    Registered Member Cody289's Avatar
    Join Date
    May 2012
    Posts
    385
    Thanks given
    11
    Thanks received
    17
    Rep Power
    14
    Quote Originally Posted by 3959 View Post
    It must not be compatible with your source. I don't know what "text8134" is, and your source doesn't have it.
    There a different text i could add?
    Reply With Quote  
     

  6. #6  
    Registered Member Cody289's Avatar
    Join Date
    May 2012
    Posts
    385
    Thanks given
    11
    Thanks received
    17
    Rep Power
    14
    Sorry for double post but i got past this and now i think this is an easy fix i just dont know how

    Code:
    src\server\model\players\PlayerAssistant.java:179: ')' expected
                                            c.sendFrame126(Extra information.", 8147
    );
                                                                ^
    src\server\model\players\PlayerAssistant.java:179: illegal start of expression
                                            c.sendFrame126(Extra information.", 8147
    );
                                                                            ^
    src\server\model\players\PlayerAssistant.java:179: unclosed string literal
                                            c.sendFrame126(Extra information.", 8147
    );
                                                                             ^
    3 errors
    Press any key to continue . . .
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jan 2011
    Posts
    189
    Thanks given
    6
    Thanks received
    29
    Rep Power
    52
    Add an " before Extra.
    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. 317 PI Compiler error
    By Cody289 in forum Help
    Replies: 19
    Last Post: 03-15-2013, 07:35 PM
  2. [PI] Compiling Error, Help.. REP!
    By Connor in forum Help
    Replies: 4
    Last Post: 11-13-2010, 04:10 PM
  3. [pi] compiling error
    By IcEbLiTzMeHh in forum Help
    Replies: 2
    Last Post: 11-06-2010, 03:22 PM
  4. [PI]Compile error pk point
    By cruelity in forum Help
    Replies: 13
    Last Post: 10-06-2010, 09:00 PM
  5. [Pi] Compiler error need help project insanity
    By Juggalo Family in forum Help
    Replies: 22
    Last Post: 08-16-2010, 12:40 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
  •