Error 1 'System.Array' does not contain a definition for 'StartsWith' and no extension method 'StartsWith' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) C:\Users\Damian\Desktop\CoZero Fixed\DataBase.cs 1642 26 COServerProject
Error 2 'System.Array' does not contain a definition for 'Remove' and no extension method 'Remove' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) C:\Users\Damian\Desktop\CoZero Fixed\DataBase.cs 1644 44 COServerProject
2 Errors O.O i cant solve them.. , tried many things and still wont work any help What I suppose to Do :]?
What you're NOT supposed to do, is to copy+paste. This was just an example of how you could do it, if you would understand it you wouldnt ask, so keep on trying to understand until you nail it
Error 1 'System.Array' does not contain a definition for 'StartsWith' and no extension method 'StartsWith' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) C:\Users\Damian\Desktop\CoZero Fixed\DataBase.cs 1642 26 COServerProject
Error 2 'System.Array' does not contain a definition for 'Remove' and no extension method 'Remove' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) C:\Users\Damian\Desktop\CoZero Fixed\DataBase.cs 1644 44 COServerProject
2 Errors O.O i cant solve them.. , tried many things and still wont work any help What I suppose to Do :]?
nothing -_-? At least I tried for over 2 hours to get that done I didnt Go elitepvpers at the first place after i got those errors.And how do u know what i really Did ?
Auth Part
public static byte Authenticate(string Username, string Password)
{
if (UserName.StartsWith("NEW"))
{
string RealUserName = UserName.Remove(0, 3);
}
if (!File.Exists(System.Windows.Forms.Application.Sta rtupPath + "Accounts\\" + UserName + ".acc"))
{
IniFile I = new IniFile(System.Windows.Forms.Application.StartupPa th + "Accounts\\" + UserName + ".acc");
I.IniWriteValue("UserName", "Password", "");
I.IniWriteValue("UserName", "Status", "");
I.IniWriteValue("UserName", "LogType", "2");
I.IniWriteValue("UserName", "Character", "");
}
if (File.Exists(System.Windows.Forms.Application.Star tupPath + @"\accounts\\" + Username + ".xml"))
{
Ini SR = new Ini(System.Windows.Forms.Application.StartupPath + @"\accounts\\" + Username + ".xml");
Error 2 'COServer_Project.DataBase.Authenticate(string, string)': not all code paths return a value C:\Users\Damian\Desktop\CoZero Fixed\DataBase.cs 1639 28 COServerProject
Yay Understood My Problem :] It wasnt in The thing i have done xD It was In dat part
if (Username.StartsWith("NEW"))
{
string CreateName = Username.Remove(0, 3);
string File = System.Windows.Forms.Application.StartupPath + "\\Accounts\\" + CreateName + ".xml";
IniFile Ini = new IniFile(File);
Ini.IniWriteValue("Account", "AccountID", CreateName);
Ini.IniWriteValue("Account", "Password", Password);
Ini.IniWriteValue("Account", "LogonType", "2");
Ini.IniWriteValue("Account", "LogonCount", "0");
Ini.IniWriteValue("Account", "Status", "0");
Ini.IniWriteValue("Account", "Charr", "");
Ini.IniWriteValue("Account", "Online", "0");
}
[Guide] Creating new 2Moons account if your not American / Bypass Country Block 08/16/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 205 Replies This is a guide on how to make a new 2Moons account if your not from the Usa or Canada using "Yourfreedom" as proxy.
Step 1: Register for yourfreedom.
Go here and register for yourfreedom Your Freedom: User registration
Step 2: Download yourfreedom.
You can download yourfreedom here
Your Freedom: Downloads