Hi Folks, im trying to create a database but running into a slight problem, i cant get my database to read the strings inside of the file.
These are some examples of the things i have tried.
[Account]
AccountID=GarethWilliams <---- String i need it to read.
Status=
Password=
[Char]
UID=0
Name=Gareth
Help Please
These are some examples of the things i have tried.
Code:
public static Game.Character LoadCharacter(string Name, ref string Account)
{
try
{
//string Acc = "";
Game.Character C = new Game.Character();
MyIni I = new MyIni(@"D:\OldCODB\Database\Chars\" + C.Name + ".ini");
{
C.Name = Name;
C.AccountName = I.ReadString("Account", "AccountID", Account);
//C.AccountName = I.ReadString("Account", "AccountID", Account);
//C.AccountName = Account;
//Account = I.ReadString("Account", "AccountID", C.AccountName = Account);
//C.AccountName = Account;
//Account = I.ReadString("Account","AccountID", Acc);
[Account]
AccountID=GarethWilliams <---- String i need it to read.
Status=
Password=
[Char]
UID=0
Name=Gareth
Help Please