for some reson the eerrors still stay OMG can someone add me on msn and help me my msn is
this is the code that dont work:
Code:
static void State_Changed(object sender, StateChangeEventArgs e)
{
if ((([I][B]MysqlConnection[/B][/I])sender).CurrentState == ConnectionState.Closed || (([I][B]MysqlConnection[/B][/I])sender).CurrentState == ConnectionState.Broken)
{
General.WriteLine("Attempting to reconnect");
Ini Config = new Ini(System.Windows.Forms.Application.StartupPath + @"\Config.ini");
string DBUserName = Config.ReadValue("Server", "DBUserName");
string DBUserPass = Config.ReadValue("Server", "DBUserPass");
try { DataBase.Connect(DBUserName, DBUserPass); General.WriteLine("Reconnected"); }
catch { General.WriteLine("Reconnect failed, restart the server!"); }
}
}
the 2 words "Mysqlconnection" are underlined red and i got those 2 errors