lmao the other source is using a mysql database not a ini/txt , btw i guess u want to delete a single char not all of them , right ? else u was to delete the file manually o-0
well here where u got it from
Quote:
public static void DeleteCharacter(string Name)
{
File.Delete(@"C:\OldCODB\Users\Characters\" + Name + ".chr");
MySqlCommand Cmd = new MySqlCommand("UPDATE accounts SET EntityName = '' WHERE EntityName = '" + Name + "'", DatabaseConnection.Connection);
Cmd.ExecuteNonQuery();
}
|
Quote:
if(File.Exist(@"C:\OldCODB\Users\Characters\" + Name + ".chr"))
|
iunno what is this about , well the second quote is a check if that file exist
and the first part from first quote delete a file (which i guess contains char(s))
and second part updated the mysql accounts list
weirdo , should made both in mysql database
anyway
Quote:
Is the code. "The name 'DatabaseConnection' does not exist in the current context.
|
do u miss a reference (do u miss adding a dll as reference ?)
or u r not using mysql at all ?
lol i still cant figure out what's wrong , im shooting in dark but yeah that will never work till u have 2 files one txt got char and one mysql got accounts -.-