In database, i have add u code and in database i have add that :
public static void SaveSpouse(Character Charr)
{
try
{
MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `Spouse` = '" + Charr.Spouse + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
Command.ExecuteNonQuery();
}
catch (Exception Exc)
{
General.WriteLine(Convert.ToString(Exc));
Connection.Close();
Connect("username(mysql)", "password(mysql)");
if (World.SaveAllChars())
{
General.WriteLine("Connection to mysql server reinitiated");
}
else
{
General.WriteLine("Connection Error, server restarting! " + DateTime.Now);
General.ServerRestart();
}
}
}
but the line : if (World.SaveAllChars()) it's say a error : Impossible to convert the type void in bool
Thank u for helping ^^