public void SavePlayerHPMP()
{
//Wrap our function inside a catcher
try
{
//Update sql database with the hp / mp information
MsSQL.UpdateData(string.Format("update character set s_hp='{0}', s_mp='{1}' where id='{2}'",
Character.Stat.SecondHp, Character.Stat.SecondMP, Character.Information.CharacterID));
}
catch (Exception ex)
{
Console.WriteLine("Saving player's HP/MP error: {0}", ex);
Systems.Debugger.Write(ex);
}
}