Thread: I need help! :(

Results 1 to 7 of 7
  1. #1 I need help! :( 
    Registered Member
    Join Date
    Jul 2011
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I was trying to add this :

    [Only registered and activated users can see links. ]

    But it gave me 3 errors:
    Code:
    src\server\model\shops\ShopAssistant.java:436: cannot find symbol
    symbol  : variable TotPrice2
    location: class server.model.shops.ShopAssistant
                            if (c.slayerPoints >= TotPrice2) {
                                                  ^
    src\server\model\shops\ShopAssistant.java:438: cannot find symbol
    symbol  : variable TotPrice2
    location: class server.model.shops.ShopAssistant
                                                            c.slayerPoints -= TotPri
    ce2;
                                                                              ^
    src\server\model\shops\ShopAssistant.java:450: break outside switch or loop
                                                 break;
                                                 ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2011
    Posts
    211
    Thanks given
    17
    Thanks received
    19
    Rep Power
    17
    There's no slayerPoints int, and you have a break; outside a switch statement.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2011
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Sorry , i'm new to java , could help me fix it. Please .
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2011
    Posts
    211
    Thanks given
    17
    Thanks received
    19
    Rep Power
    17
    check out thenewboston.org, the first few tuts will teach you more than i can.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2011
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Aagh that didn't help :/.
    Reply With Quote  
     

  6. #6  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,371
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    cannot find symbol symbol : variable TotPrice2


    Start reading errors
    [Only registered and activated users can see links. ]


    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,816
    Thanks given
    888
    Thanks received
    1,433
    Rep Power
    2936
    Quote Originally Posted by Billionaire View Post
    There's no slayerPoints int, and you have a break; outside a switch statement.
    There error says NOTHING about not finding slayerpoints
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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