Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string B64E(string ix)
- {
- byte[] earray = System.Text.Encoding.UTF8.GetBytes(ix);
- return Convert.ToBase64String(earray);
- }
- static public void CreateSave()
- {
- function.WriteCenter("Enter name of new save");
- Console.WriteLine("\n\n");
- Console.CursorLeft = (Console.WindowWidth / 2) - 1;
- string savename = Console.ReadLine();
- Directory.CreateDirectory(@"saves\" + savename);
- Console.WriteLine("\n");
- function.WriteCenter("Enter charcter name");
- Console.WriteLine("\n\n");
- Console.CursorLeft = (Console.WindowWidth / 2) - 1;
- string charname = Console.ReadLine();
- string[] miscvalue = new string[50];
- miscvalue[0] = savename;
- miscvalue[1] = charname;
- miscvalue[2] = "0";
- miscvalue[3] = "10";
- miscvalue[4] = "1";
- int itcount = 0;
- foreach (string item in miscvalue)
- {
- string pltext = function.B64E(item);
- miscvalue[itcount] = pltext;
- itcount =+ 1;
- }
- Console.WriteLine(miscvalue);
- Console.ReadKey(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement