Yeah, that's what I figured but SaveDonation and SaveRank are still underlined.
Could I have added
Code:
public int Rank = 0;
public int Donation = 0;
in the wrong place? I added it 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. Just check that for me please.