Register for your free account! | Forgot your password?

You last visited: Today at 12:16

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

 

[Help] Error

Reply
 
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:

imagem.JPG

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
Quote:
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:
Code:
DataBase.Connection.StateChange += new StateChangeEventHandler(State_Changed);
then directly ABOVE "public unsafe General()" add:
Code:
        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  
Reply



« 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: http://image.cp-g.net/pics/4a8971bd15c0d.jpg. I have already installed Microsoft Visual C++ Runtime Library 2005 and...
3 Replies - SRO PServer Ask the Experts



All times are GMT +1. The time now is 12:16.


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

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