[HELP]Anyone Can Help me

01/03/2009 20:03 xxFastBoy#1
Crad Points And Stat Points not Save And Get Errors

Console error;
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
Line 1528;
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)); }
}
Anyone can help me Please!!??
01/03/2009 20:40 ~Yuki~#2
Remove Try Catch block ant try again :)
01/03/2009 20:41 L1nk1n*P4rK#3
Try to read all your stats script, i was get this error to but i fixed it, i think you wasnt added it when it need to be added
01/03/2009 21:59 xxFastBoy#4
i will try Thanks