Can someone tell m,e what is generating th following error??

11/20/2011 06:58 mujake#1
I need guidance in understanding this errors and how to fix them,

1. This error occurs when i am hunting dont know what generates it
[Only registered and activated users can see links. Click Here To Register...]
2 This error occurs when somebody tried to upgrade items in twin (his items vanished i think )
[Only registered and activated users can see links. Click Here To Register...]
3. When this error occurs you get disconnected
[Only registered and activated users can see links. Click Here To Register...]
4. I saw this one and it appeared from no were as all previous error ,nothing in Visual studio said that they are
[Only registered and activated users can see links. Click Here To Register...]
11/20/2011 07:18 pro4never#2
It's trying to pull a uint from a string that is not a number.


Example...

string input = "text";

uint value = UInt.Parse(input);

Would throw that error.

Go to your dropped items.cs line 49 and look for something that's trying to do a uint.parse and just add checks in there to see what it's trying to parse.

I'm guessing it's trying to pull a uint from a string that is empty but that's just off the top of my head.
11/20/2011 08:50 mujake#3
that line is

ItemId = uint.Parse(Splitter[0]);

Would it be maybe because the item that should drop doesn't exist or something ?Because the items file is not in a .txt is .ini

should like splitter should be like the items.ini witch uses "#" or like "-" as in the item string eg: 723721-0-0-0-0-0???

above line 49 is
line 48 string[] Splitter = item.Split('-');
line 49 ItemId = uint.Parse(Splitter[0]);
11/20/2011 18:11 pro4never#4
there's probably an empty line and therefor the LINE being returned is blank and cannot be parsed (cause well... nothing there to be parsed)
11/20/2011 19:31 mujake#5
you mean between lines??
11/20/2011 23:41 BaussHacker#6
- is the char you're splitting the string with.
Make sure there is no empty entries.

Eg. check for null using:
Code:
if (string != null)
Or use StringSplitOption or Options whatever the name is.
11/21/2011 07:07 Spirited#7
[Only registered and activated users can see links. Click Here To Register...]
You're welcome.
11/21/2011 19:03 mujake#8
Quote:
Originally Posted by Fаng View Post
[Only registered and activated users can see links. Click Here To Register...]
You're welcome.



I really like your sarcasm, and appreciate you for being straight to the point.
I like your blog ,was really helpful to me. thx
11/21/2011 20:04 BaussHacker#9
Quote:
Originally Posted by mujake View Post
I really like your sarcasm, and appreciate you for being straight to the point.
I like your blog ,was really helpful to me. thx
I don't think it was sarcasm.
11/21/2011 20:09 Spirited#10
Quote:
Originally Posted by BaussHacker View Post
I don't think it was sarcasm.
It wasn't. I'm dead serious when I say go look it up on Google.
Smart people use Google.