Thread: [PI] Adding items to shops error?

Results 1 to 6 of 6
  1. #1 [PI] Adding items to shops error? 
    Registered Member [Mash]'s Avatar
    Join Date
    Jul 2010
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Whenever I try to add an item to a shop, I got an error when running.
    I was trying to add AGS, for 1k just to see if I could add items properly because no point in adding lots of items for nothing.

    The error:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NumberFormatException: For input string: "1 11694 1000"
    at java.lang.NumberFormatException.forInputString(Unk nown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at server.world.ShopHandler.loadShops(ShopHandler.jav a:147)
    at server.world.ShopHandler.<init>(ShopHandler.java:4 5)
    at server.Server.<clinit>(Server.java:61)
    Could not find the main class: server.Server. Program will exit.
    Press any key to continue . . .

    The Shop I tried adding it to:
    Code:
    shop = 7	Stall_Items	2	2	1897	1	1898	1	950	1	951	1	1635	1	1636	1	7650	1	7651	1	1613	1	1614	1   11694 1000
    EDIT: Fixed, but no items appear in the shop? WTF?!

    Thanks to whoever can help me.

    +rep.
    Reply With Quote  
     

  2. #2  
    Registered Member [Mash]'s Avatar
    Join Date
    Jul 2010
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    BUMP.
    Also read the 'EDIT'.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2009
    Age
    28
    Posts
    1,579
    Thanks given
    4
    Thanks received
    23
    Rep Power
    0
    Code:
    shop = 7	Stall_Items	2	2	1897	1	1898	1	950	1	951	1	1635	1	1636	1	7650	1	7651	1	1613	1	1614	1	11694	1000
    Try that.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Mar 2008
    Posts
    1,937
    Thanks given
    131
    Thanks received
    61
    Rep Power
    0
    you have to use tabs in between the items in shop
    Reply With Quote  
     

  5. #5  
    Registered Member [Mash]'s Avatar
    Join Date
    Jul 2010
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Thanks Paul!
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Oct 2009
    Age
    28
    Posts
    1,579
    Thanks given
    4
    Thanks received
    23
    Rep Power
    0
    Glad to help
    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

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