Thread: 1 error Rep++ shopassistant

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 1 error Rep++ shopassistant 
    Registered Member
    Join Date
    Jun 2012
    Posts
    92
    Thanks given
    14
    Thanks received
    1
    Rep Power
    11
    i have this 1 small error.... how do i fix it?

    Code:
    src\server\model\shops\ShopAssistant.java:483: unreachable statement
                                                    if(c.myShopId == 14) {
                                                    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    I'll post any code if you'd like
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Aug 2012
    Posts
    808
    Thanks given
    56
    Thanks received
    98
    Rep Power
    0
    post your shopassistant on pastiebin and give link
    Reply With Quote  
     

  3. #3  
    Registered Member Audax's Avatar
    Join Date
    Nov 2012
    Posts
    98
    Thanks given
    44
    Thanks received
    5
    Rep Power
    12
    nvm.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jun 2012
    Posts
    1,063
    Thanks given
    119
    Thanks received
    199
    Rep Power
    0
    You posted your if statement in area in the class where it wasn't suppose to be
    add it in with all the other if statements, for example..

    You probably added that in a array of cases, and not if statements.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2012
    Posts
    92
    Thanks given
    14
    Thanks received
    1
    Rep Power
    11
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Aug 2012
    Posts
    808
    Thanks given
    56
    Thanks received
    98
    Rep Power
    0
    change

    Code:
    if(c.myShopId == 14) {
    to

    Code:
    else if(c.myShopId == 14) {
    Reply With Quote  
     

  7. #7  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Zerlox View Post
    remove

    Code:
    if (c.slayerPoints >= TotPrice2) {
    No... It's being used.



    Add a && in the if statement above and paste that in.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jun 2012
    Posts
    92
    Thanks given
    14
    Thanks received
    1
    Rep Power
    11
    nvm you guys. I fixed the error but my slayer shop is still brokened
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    paste ur shopassistant please?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jun 2012
    Posts
    92
    Thanks given
    14
    Thanks received
    1
    Rep Power
    11
    i did, scroll up. but what i added didnt do anything. My slayer system still didnt worked for shop 14. If anyone could add it that would be the awesomest
    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)


User Tag List

Similar Threads

  1. My ShopAssistant, few token shops etc
    By yunaaa in forum Configuration
    Replies: 6
    Last Post: 11-07-2012, 05:28 PM
  2. ShopAssistant Error, will Rep++
    By Lation in forum Help
    Replies: 11
    Last Post: 09-12-2012, 11:05 PM
  3. Replies: 1
    Last Post: 12-03-2011, 06:06 PM
  4. [PI] Small ShopAssistant error
    By Rev3rt in forum Help
    Replies: 4
    Last Post: 08-27-2011, 01:04 PM
  5. Replies: 5
    Last Post: 08-28-2010, 05:45 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
  •