Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Database hashtable PLZ HELP

Discussion on Database hashtable PLZ HELP within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
Database hashtable PLZ HELP

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
biohazardous is offline  
Old 10/09/2010, 04:16   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Whats at that line?
Arcо is offline  
Old 10/09/2010, 04:58   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
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);
                    }
biohazardous is offline  
Old 10/09/2010, 05:17   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
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);}
}
Arcо is offline  
Thanks
1 User
Old 10/09/2010, 15:32   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
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..
†he Knight is offline  
Thanks
1 User
Old 10/10/2010, 00:35   #6
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
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
biohazardous is offline  
Reply


Similar Threads Similar Threads
new database
10/16/2009 - Metin2 Private Server - 7 Replies
N'abend also ich habe da mal eine frage. Es war ja mal so dass die clubmt2 datenbank mal "gehackt" worden ist und zum download bereit stand. ich hätte sie gerne doch ich finde nichts ordentliches mit der sufu und google. wenn sie jemand noch hat pls pn me. mfg greivel
About Database
10/15/2009 - CO2 Private Server - 18 Replies
How can something go in my database from the internet browser? like my navicat database how can I do that?
Database help pls
08/09/2009 - Dekaron Private Server - 3 Replies
I somehow got this medial in my inventory. ive tried to duplicate it in the database with no success. i changed the inventory number from 0 to 1 and the header where in the user_bag it says byHeader well the med is an 8 so when i change the byheader to 8 and login the medial dissapears. but the original is still there. im not quite sure any pointers will be very helpful.
Help me with database.
07/13/2009 - CO2 Private Server - 5 Replies
:handsdown:I can't register my friends on my server because> database doesn't work?To say simple i can't create a new account. Someone please help me with this problem.TY:)
[Release]Hashtable
12/04/2008 - CO2 PServer Guides & Releases - 22 Replies
Well seems like everyone is getting thanks for the tiniest bit of code... so ima put this out there To Make a new hashtabe you do this Hashtable Hash = new Hashtable(); Hash being the name you wish to call you hash... Press thanks if you like it thank you



All times are GMT +2. The time now is 16:50.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.