SA:MP URL connect C# + username
#1

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?
Reply
#2

Code:
proc.StartInfo.Arguments = "/c reg add 'hkcu\\Software\\SAMP' /f /v PlayerName /t REG_SZ /d '" + PlayerName.Text + "'";
Reply
#3

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");

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)