16.06.2016, 11:29
(
Последний раз редактировалось dugi; 16.06.2016 в 18:22.
)
I'm starting samp-server.exe but taking error:
On server.cfg all ok!
go code:
Without go server started. But with go i take this 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())
}