Starting SAMP Server. GoLang.
#1

I'm starting samp-server.exe but taking error:

On server.cfg all ok!

go code:
PHP код:
func startServer() {
    
cmd := exec.Command("E:/Soft/SampServer/samp-server.exe")
    var 
out bytes.Buffer
    cmd
.Stdout = &out
    err 
:= cmd.Run()
    if 
err != nil {
        
log.Fatal(err)
    }
    
fmt.Println(out.String())

Without go server started. But with go i take this error.
Reply
#2

Your working directory needs to be set to the root of the sa-mp server, otherwise it tries to read server.cfg from wherever it's being run (which probably doesn't exist, producing that rcon password error).
Reply
#3

Quote:
Originally Posted by ev0lution
Посмотреть сообщение
Your working directory needs to be set to the root of the sa-mp server, otherwise it tries to read server.cfg from wherever it's being run (which probably doesn't exist, producing that rcon password error).
thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)