I am currently working on a multi world gamemode and there is a problem that i have been having. I can't get users to connect to the other IPs.
I run a connect console command on the client and that works but it says bad server address.
Bad server address ("xxx.xx.xxx.xxx" "xxxxx")
Then when i type in the same ip and port into console it connects. Can anyone help me?
[QUOTE=stinkfire;21226889]I am currently working on a multi world gamemode and there is a problem that i have been having. I can't get users to connect to the other IPs.
I run a connect console command on the client and that works but it says bad server address.
Bad server address ("xxx.xx.xxx.xxx" "xxxxx")
Then when i type in the same ip and port into console it connects. Can anyone help me?[/QUOTE]
Tell us the command you're running. :smug:
[QUOTE=stinkfire;21226889]I am currently working on a multi world gamemode and there is a problem that i have been having. I can't get users to connect to the other IPs.
I run a connect console command on the client and that works but it says bad server address.
Bad server address ("xxx.xx.xxx.xxx" "xxxxx")
Then when i type in the same ip and port into console it connects. Can anyone help me?[/QUOTE]
You're supposed to use it like this:
[code]ply:ConCommand("connect ip:port")[/code]
Or if you have a menu:
[code]PanelName.DoClick = function()
RunConsoleCommand("connect", "ip:port")
PanelName:Close()
end[/code]
[QUOTE=LEETNOOB;21227030]You're supposed to use it like this:
[code]ply:ConCommand("connect", "ip:port")[/code][/QUOTE]
Way to read [url=http://wiki.garrysmod.com/?title=Player.ConCommand][u]the wiki[/u][/url], it's
[lua]ply:ConCommand( "connect ip:port" )[/lua]
Sorry, you need to Log In to post a reply to this thread.