Console error;
Line 1528;Quote:
just paste in System.InvalidOperationException: Connection must be valid and open
at MySql.Data.MySqlClient.MySqlCommand.CheckState()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuer y()
at COServer_Project.DataBase.SaveStatPoints(Character Charr) in C:\Documents
and Settings\admin\Desktop\My Source a.q\DataBase.cs:line 1528
Anyone can help me Please!!??Quote:
public static void SaveCardPoints(Character Charr)
{<<<------ Here is 1528
try
{
MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `CardPoints` = '" + Charr.CardPoints + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
Command.ExecuteNonQuery();
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}






