Alright I know now that I won't get a fully coded nobility system. I'll just keep trying with the information that's already out there. Unless someone would at least tell me what I need to stop the error I'm getting. Which is
I have added
Code:
public int Rank = 0;
public int Donation = 0;
under public byte Stamina = 0;
I added this: under public void Save()
Code:
public void SaveDonation()
{
if (MyClient.There)
if (MyClient.Online)
DataBase.SaveDonation(this);
}
public void SaveRank()
{
if (MyClient.There)
if (MyClient.Online)
DataBase.SaveRank(this);
}
And this: under public static void SaveChar(Character Charr)
Code:
public static void Donation(Character Charr)
{
try
{
MySqlCommand Command = null;
Command = new MySqlCommand("UPDATE `Characters` SET `Donation` = '" + Charr.Donation + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
Command.ExecuteNonQuery();
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
public static void Rank(Character Charr)
{
try
{
MySqlCommand Command = null;
Command = new MySqlCommand("UPDATE `Characters` SET `Rank` = '" + Charr.Rank + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
Command.ExecuteNonQuery();
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
I'm pretty sure everything is right. But SaveDonation and SaveRank are underlined.[/QUOTE]