Thread: Help with error

Results 1 to 4 of 4
  1. #1 Help with error 
    Member
    Join Date
    Jul 2012
    Posts
    126
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    im trying to make it so you can right click on a item while in a shop and choose Sell x amount.
    this is my error

    Code:
    src\server\model\players\packets\BankX2.java:84: error: cannot find symbol
                    c.getTradeAndDuel().fromTrade(c.xRemoveId, c.xRemoveSlot, xAmoun
    t);
                                                                              ^
      symbol:   variable xAmount
      location: class BankX2
    src\server\model\players\packets\BankX2.java:89: error: cannot find symbol
                            c.getShops().sellItem(c.xRemoveId, c.xRemoveSlot, xAmoun
    t);
                                                                              ^
      symbol:   variable xAmount
      location: class BankX2
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    It doesn't know what xAmount is, not defined.
    Attached image


    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Jul 2012
    Posts
    126
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Rhiel View Post
    It doesn't know what xAmount is, not defined.
    do i put 500 instead of xAmount
    Reply With Quote  
     

  4. #4  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    only if you want that value to be a fixed set number of 500. then yes, you would put it was 500 instead of xAmount.

    Advertise your RSPS cheap on my website: www.BryceBux.com

    ^ PM me and I will give you a few dollars for FREE on my website for advertisements ^
    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. ERROR K4rn4ge 634 model header error
    By DeeJay in forum Help
    Replies: 0
    Last Post: 03-17-2012, 03:17 PM
  2. Replies: 4
    Last Post: 02-23-2012, 10:54 PM
  3. Replies: 2
    Last Post: 01-26-2012, 03:38 PM
  4. Replies: 6
    Last Post: 09-15-2010, 04:20 PM
  5. Replies: 6
    Last Post: 05-01-2010, 05:18 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
  •