protected void SaveGold()
{
//Wrap our function inside a catcher
try
{
//Update database with inventory gold
MsSQL.UpdateData("update character set gold='" + Character.Information.Gold + "' where id='" + Character.Information.CharacterID + "'");
//Update database with storage gold
MsSQL.UpdateData("update users set gold='" + Character.Account.StorageGold + "' where id='" + Player.AccountName + "'");
}
catch (Exception ex)
{
Console.WriteLine("Save gold error {0}", ex);
Systems.Debugger.Write(ex);
}
}