C
C#2y ago
H04x

❔ ✅ Help For MY GAME CLIENT

Friends, I'm coding a game client with C# and when I add a connect button and I type "System.Diagnostics.Process.Start("a random url"); and when I press the button, I get an error. The error is: "System.ComponentModel.Win32Exception: ' An error occurred trying to start process 'mtasa://localhost' with working directory 'C:\Users\Ahmet\source\repos\Wrex Roleplay\Wrex Roleplay\bin\Debug\net6.0-windows'. The system cannot find the file specified.'"
4 Replies
Omnissiah
Omnissiah2y ago
why a connect button would start a process?
230V
230V2y ago
they've got banned but $runurl for anyone else
MODiX
MODiX2y ago
To open a URL in the program associated with the scheme (e.g. https):
var url = "https://www.google.com/";
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
var url = "https://www.google.com/";
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server