There is a code:
Match match = regex.Match(responseFromServer); if (match.Success) { var input = responseFromServer; var split = input.Split(':'); var final = split[3]; ProcessStartInfo mcStartInfo = new Shitocode; Process.Start(mcStartInfo); this.Close(); } else if (responseFromServer == " Bad Login") { MessageBox.Show("Uncorrect login/password!"); } else if (responseFromServer == " Old version") { MessageBox.Show("Launcher is old!"); }
Why are the last 2 operators not called? :)
I tried this:
if (match.Success) { var input = responseFromServer; var split = input.Split(':'); var final = split[3]; ProcessStartInfo mcStartInfo = new Shitocode; Process.Start(mcStartInfo); this.Close(); } else if (responseFromServer.Equals("Bad Login")) { MessageBox.Show("Uncorrect login/password!"); } else if (responseFromServer.Equals("Old Version")) { MessageBox.Show("Launcher is old!"); }
Nothing happens in response