• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
server launcher help
#6
(2019-07-13, 08:53 PM)Josh Wrote: You could always launch samp.exe and pass the following parameters:

-h <IP> -p <PORT> -n <NAME> -z <PASSWORD>



example:

samp.exe -h 127.0.0.1 -p 7777 -n Josh -z MyL33tP4ssw0rd



That is incorrect. If command line arguments are given, "samp.exe" treats the first command line argument (separated by white space) as an IPv4 address with port separated by ":", if specified. If it fails to parse the command line argument string, it will still launch San Andreas Multiplayer and attempts to connect to ":7777", which is an invalid server IP address.



Code:
samp.exe -c -h 1.2.3.4 -p 1234 -n WTF

results in

[Image: unknown.png]



where

Code:
sampcmd.exe -c -h 1.2.3.4 -p 1234 -n WTF

results in

[Image: unknown.png]



Note that "-c" (empty RCON password) is required to make it work, because why wouldn't it just be optional instead?

"sampcmd" just copies the command line arguments to the GTA San Andreas process, so "samp.dll" can parse them.
[Image: github-samp-icon.png]
  Reply


Messages In This Thread
server launcher help - by unbelievable_10 - 2019-07-09, 05:15 PM
RE: server launcher help - by J_esus - 2019-07-12, 02:02 PM
RE: server launcher help - by Toretto - 2019-07-13, 11:55 AM
RE: server launcher help - by dakyskye - 2019-07-13, 06:16 PM
RE: server launcher help - by Josh - 2019-07-13, 08:53 PM
RE: server launcher help - by BigETI - 2019-07-13, 11:11 PM
RE: server launcher help - by Josh - 2019-07-17, 09:42 PM

Forum Jump: