Database hashtable PLZ HELP

10/09/2010 02:50 biohazardous#1
System.ArgumentExecption: Item has already been added. Key in dictionary: '0' key being added: '0'
at System.Collections.Hastable.Insert<Object key, Object nvalue, Boolean add
>
at System.Collections.Hashtable.Add<Object key, Object value>
at NewestCOServer.database.LoadCharacter<String Name, String& Account> in C:\ Documents and Setting\computer\Desktop\5165\5165 Source\Database.cs:line 922

Please im begging anyone tell me how to fix this i tried undoing all my edits nothing happened
last edits i remember doing were
adding +12 steed
keeping skills at rb
delete user acc
and trying to fix the composer
10/09/2010 04:16 Arcо#2
Whats at that line?
10/09/2010 04:58 biohazardous#3
Quote:
Originally Posted by Аrco View Post
Whats at that line?
oops forgot to put that fail
here

Code:
C.Skills = new Hashtable();
                    byte SkillCount = BR.ReadByte();
                    for (byte i = 0; i < SkillCount; i++)
                    {
                        Game.Skill S = new NewestCOServer.Game.Skill();
                        S.ReadThis(BR);
         [COLOR="Red"]Line 922-->[/COLOR]   C.Skills.Add(S.ID, S);
                    }
10/09/2010 05:17 Arcо#4
Change that to
C.Skills = new Hashtable();
byte SkillCount = BR.ReadByte();
for (byte i = 0; i < SkillCount; i++)
{
Game.Skill S = new NewestCOServer.Game.Skill();
S.ReadThis(BR);
if (!C.Skills.Contains(S.ID)){
C.Skills.Add(S.ID, S);}
}
10/09/2010 15:32 †he Knight#5
btw, the source that u use (as i saw from the folders.. 5165>5165 source .. etc) sucks.. use the one that arco released on the faq..
10/10/2010 00:35 biohazardous#6
Quote:
Originally Posted by JuiceDCodeR View Post
btw, the source that u use (as i saw from the folders.. 5165>5165 source .. etc) sucks.. use the one that arco released on the faq..
I use this source (Deckers) because it has stuff fixed already and people are getting tired of my posts so i dont want to annoy people anymore so i used his source because i dont know how to fix poison fog or poison star or anything for that matter