Register for your free account! | Forgot your password?

You last visited: Today at 11:16

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


[Help] Error

Old   #1
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
[Help] Error

Hi, I am With an ERROR In My Source, the Error is the Following one:


It will be That Somebody Could Help Me?

Brun0_ is offline  
Old   #2
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Originally Posted by Rechocto View Post
so! here's how to fix it!

go into General.cs, and search for "public unsafe General()"

under that you will find "DataBase.Connect(DBUserName, DBUserPass);"

under that line add:
DataBase.Connection.StateChange += new StateChangeEventHandler(State_Changed);
then directly ABOVE "public unsafe General()" add:
        static void State_Changed(object sender, StateChangeEventArgs e)
            Ini Config = new Ini(System.Windows.Forms.Application.StartupPath + @"\Config.ini");
            string DBUserName = Config.ReadValue("Server", "DBUserName");
            string DBUserPass = Config.ReadValue("Server", "DBUserPass");
            if (e.CurrentState == ConnectionState.Closed) //no need for a timer to fix login freeze?
                DataBase.Connect(DBUserName, DBUserPass);
the end.
the fix.

alexbigfoot is offline  

« Previous Thread | Next Thread »

Similar Threads
PortMap Error: RichEdit line insertion error
Hey Leute, habe mir letztens nen Metin2 P-Server mit Hamachi erstellt. Alles läuft super, wenn da dieser kack nicht wäre. PortMap zeigt eine...
6 Replies - Metin2 PServer - Discussions / Questions
[Fehler] Patch? Error? Hier Hilfe! [Error]
Da ich keine Werbung machen möchte muss ich wohl alles abkopieren... Ich entschuldige mich das ich alles zuspoilern musste aber bei soviel ...
14 Replies - Combat Arms
MySro Error~>Microsoft Error Visual C++ Runtime...
Hello, i have got a problem: I have already installed Microsoft Visual C++ Runtime Library 2005 and...
3 Replies - SRO PServer Ask the Experts

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

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.