SA:MP URL connect C# + username - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: SA:MP URL connect C# + username (
/showthread.php?tid=653325)
SA:MP URL connect C# + username -
Vaki - 01.05.2018
I have this command for joining to SA:MP server from launcher:
Quote:
System.Diagnostics.Process.Start("samp://91.134.156.45:7777");
|
What i need to add in this request to send nickname too?
Re: SA:MP URL connect C# + username -
connork - 01.05.2018
Code:
proc.StartInfo.Arguments = "/c reg add 'hkcu\\Software\\SAMP' /f /v PlayerName /t REG_SZ /d '" + PlayerName.Text + "'";
Re: SA:MP URL connect C# + username -
Vaki - 01.05.2018
Thank you, but i don't know how to add it to my code. Because i have error with proc variable. I dont know how to use it both.
Quote:
proc.StartInfo.Arguments = "/c reg add 'hkcu\\Software\\SAMP' /f /v PlayerName /t REG_SZ /d '" + textBox1.Text + "'";
System.Diagnostics.Process.Start("samp://91.134.156.45:7777");
|