public void SaveGuideInfo()
{
//Wrap our function inside a catcher
try
{
//Set default value for guidehex
string GuideHex = "";
//For 8 repeating
for (int i = 0; i < 8; ++i)
{
//Num lenght for guideinfo
string Numlen = String.Format("{0:X}", Character.Guideinfo.G1[i]);
//If lenght is 1, we set the string to 0 + lenght
if (Numlen.Length == 1) Numlen = "0" + Numlen;
//Set total
GuideHex = GuideHex + Numlen;
}
//Update database information
MsSQL.UpdateData("update character set GuideData='" + GuideHex + "' where id='" + Character.Information.CharacterID + "'");
}
catch (Exception ex)
{
Console.WriteLine("Saving Guide error: {0}", ex);
Console.WriteLine(ex);
}
}