Adding items to my shop error

Results 1 to 5 of 5
  1. #1
    OFWGK†∆ joellol is offline
    MemberRank
    Apr 2008 Join Date
    HollandLocation
    479Posts

    Adding items to my shop error

    Error in my bat
    Code:
    Voule Auto restart
    Could not find process: java
    Restarting server
    Online.
    Exception in thread "main" java.lang.NumberFormatException: For input string: "5
          35 5     667 5     8002 5     3631 5     3637 5     3627 5     3629 5
    15350 5     6914 5     8043 5"
            at java.lang.NumberFormatException.forInputString(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at ShopHandler.loadShops(ShopHandler.java:88)
            at ShopHandler.<init>(ShopHandler.java:33)
            at server.main(server.java:127)
    And the part that i edited in shops.cfg

    Code:
    //-----ShopID---ShopName----------------------------------------Sell----Buy-----Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount
    shop = 1	Pk_Point_Exchange				2	2
    shop = 2	InfinityPkz_Shop		2	2	9813	5	9812	5	9811	5	9814	5	9810	5	9808	5	9809	5	9821	5	9820	5	9800	5	9801	5	9803	5	9802	5	9804	5	9805	5	9806	5	9807	5	9991	5	9990	5	9986	5	8770	5	4151	5      35 5     667 5     8002 5     3631 5     3637 5     3627 5     3629 5     15350 5     6914 5     8043 5
    i added item ids| 35, 667, 8002, 3631, 3637, 3629, 15350, 6914, 8043

    Please help me youll get a thanks
    Nothing is changed in the pk points shop but in the infinitypkz shop


  2. #2
    OFWGK†∆ joellol is offline
    MemberRank
    Apr 2008 Join Date
    HollandLocation
    479Posts

    Re: Adding items to my shop error

    Bumps

  3. #3
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: Adding items to my shop error

    Code:
    shop = 1	Pk_Point_Exchange				2	2
    shop = 2	InfinityPkz_Shop				2	2	9813	5	9812	5	9811	5	9814	5	9810	5	9808	5	9809	5	9821	5	9820	5	9800	5	9801	5	9803	5	9802	5	9804	5	9805	5	9806	5	9807	5	9991	5	9990	5	9986	5	8770	5	4151	5	0035	5	0667	5	8002	5	3631	5	3637	5	3627	5	3629	5	15350	5	6914	5	8043	5
    and there's your problem solved.

    The reason for the problem, is because you started seperating the items with white spaces (space bar) when you should have either left 1 or 2 tab spaces, (i used 1 in this case, 2 is acceptable however) so like this:

    Code:
    <tab>itemcode<tab>itemamount<tab>nextitemcode<tab>nextitemamount<tab> so on so fourth
    i hope you understand that, and it helps you out

  4. #4
    OFWGK†∆ joellol is offline
    MemberRank
    Apr 2008 Join Date
    HollandLocation
    479Posts

    Re: Adding items to my shop error

    Quote Originally Posted by -fedexer- View Post
    Code:
    shop = 1	Pk_Point_Exchange				2	2
    shop = 2	InfinityPkz_Shop				2	2	9813	5	9812	5	9811	5	9814	5	9810	5	9808	5	9809	5	9821	5	9820	5	9800	5	9801	5	9803	5	9802	5	9804	5	9805	5	9806	5	9807	5	9991	5	9990	5	9986	5	8770	5	4151	5	0035	5	0667	5	8002	5	3631	5	3637	5	3627	5	3629	5	15350	5	6914	5	8043	5
    and there's your problem solved.

    The reason for the problem, is because you started seperating the items with white spaces (space bar) when you should have either left 1 or 2 tab spaces, (i used 1 in this case, 2 is acceptable however) so like this:

    Code:
    <tab>itemcode<tab>itemamount<tab>nextitemcode<tab>nextitemamount<tab> so on so fourth
    i hope you understand that, and it helps you out
    Thanks dude you get a thanks

  5. #5
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: Adding items to my shop error

    Ha thanks, and you're welcome. I hope you see where you went wrong? And now you know how to fix it :)



Advertisement