Thread: [PI] Mining

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [PI] Mining 
    Proud Owner of Unleashed Reality
    317UnleashedReality's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    251
    Thanks given
    8
    Thanks received
    16
    Rep Power
    11
    Well, I was trying to add mining through Cycle Events here - [Only registered and activated users can see links. ]

    I fixed some errors, but I cant figure out the rest, do any of you know?

    Code:
    src\server\model\players\skills\Mining.java:145: mining has private access in se
    rver.model.players.Client
                    switch (c.mining[0]) {
                             ^
    src\server\model\players\skills\Mining.java:145: array required, but server.mode
    l.players.skills.Mining found
                    switch (c.mining[0]) {
                                    ^
    src\server\model\players\skills\Mining.java:187: mining has private access in se
    rver.model.players.Client
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
                                                                         ^
    src\server\model\players\skills\Mining.java:187: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
                                                                                ^
    src\server\model\players\skills\Mining.java:187: mining has private access in se
    rver.model.players.Client
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
    
             ^
    src\server\model\players\skills\Mining.java:187: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
    
                    ^
    src\server\model\players\skills\Mining.java:187: mining has private access in se
    rver.model.players.Client
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
    
                                 ^
    src\server\model\players\skills\Mining.java:187: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
    
                                        ^
    src\server\model\players\skills\Mining.java:190: mining has private access in se
    rver.model.players.Client
                                    if (c.miningTimer == 0 && c.mining[0] > 0) {
                                                               ^
    src\server\model\players\skills\Mining.java:190: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.miningTimer == 0 && c.mining[0] > 0) {
                                                                      ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    10 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2012
    Posts
    902
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    private access... set to public
    Reply With Quote  
     

  3. #3  
    Proud Owner of Unleashed Reality
    317UnleashedReality's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    251
    Thanks given
    8
    Thanks received
    16
    Rep Power
    11
    but other skills are calling private access, with public in the skill file.

    I changed that already and it worked for the private access errors, but for the sake of asking for help I reversed it so I could post all errors just in-case.

    Code:
    src\server\model\players\skills\Mining.java:145: array required, but server.mode
    l.players.skills.Mining found
                    switch (c.mining[0]) {
                                    ^
    src\server\model\players\skills\Mining.java:187: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
                                                                                ^
    src\server\model\players\skills\Mining.java:187: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
    
                    ^
    src\server\model\players\skills\Mining.java:187: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.getItems().freeSlots() < 1 || c.mining[0]
    == 0 || c.mining[1] == 0 || c.mining[2] == 0) {
    
                                        ^
    src\server\model\players\skills\Mining.java:190: array required, but server.mode
    l.players.skills.Mining found
                                    if (c.miningTimer == 0 && c.mining[0] > 0) {
                                                                      ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    5 errors
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2012
    Posts
    902
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    add import?
    Reply With Quote  
     

  5. #5  
    Proud Owner of Unleashed Reality
    317UnleashedReality's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    251
    Thanks given
    8
    Thanks received
    16
    Rep Power
    11
    imports are there, it has to do with the switch, its suppose to be an array but Im not sure what.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2012
    Posts
    902
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    the variable mining, should be an array change
    Code:
    int mining...
    to
    Code:
    int mining[]...
    Reply With Quote  
     

  7. #7  
    Proud Owner of Unleashed Reality
    317UnleashedReality's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    251
    Thanks given
    8
    Thanks received
    16
    Rep Power
    11
    I tried adding Public int mining[]; player.java

    and client.java, In client.java it says its already defined, and in player.java nothing changes.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2012
    Posts
    902
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    strange, the array was already declared, try setting it to 0 at start. find mining[] and add ={0};
    Reply With Quote  
     

  9. #9  
    Proud Owner of Unleashed Reality
    317UnleashedReality's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    251
    Thanks given
    8
    Thanks received
    16
    Rep Power
    11
    There is no array, when I add it it says its already declared but its not.

    Want to tv and take a look for me?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jul 2012
    Posts
    902
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    sure
    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)

Similar Threads

  1. Need help with mining
    By MrRawwrz in forum Help
    Replies: 6
    Last Post: 08-07-2011, 07:34 PM
  2. Mining
    By Infexis in forum Chat
    Replies: 3
    Last Post: 06-15-2011, 02:00 PM
  3. Replies: 19
    Last Post: 01-02-2010, 11:59 PM
  4. Mining Help
    By Mister Maggot in forum Help
    Replies: 4
    Last Post: 12-31-2009, 08:41 PM
  5. mining help
    By Vox' in forum Help
    Replies: 2
    Last Post: 06-04-2009, 05:10 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •