• RunConsoleCommand connect issue
    4 replies, posted
When I attempt to reconnect to my server with [CODE]RunConsoleCommand("connect", "192.168.0.104:27015")[/CODE] It disconnects, attempts to connect. Then says this in the console [QUOTE]Bad server address ("192.168.0.104:27015")[/QUOTE] It works when I connect through my console, why doesn't it work through a lua script?
Use the deprecated PLAYER:ConCommand function; it supports connect. LocalPlayer( ):ConCommand( "connect " .. _ip );
[QUOTE=Acecool;42058659]Use the deprecated PLAYER:ConCommand function; it supports connect. LocalPlayer( ):ConCommand( "connect " .. _ip );[/QUOTE] Thanks, I'm remaking a plugin I saw last week where it prompts the user to reconnect when the server crashes. The download for that plugin was gone so I will be making it today.
I fixed that one, and I made it so that it automatically reconnects when the server is back up with the help of PHP; if that'll give you an idea of how to make it better :-)
[QUOTE=SEGnosis;42058697]Thanks, I'm remaking a plugin I saw last week where it prompts the user to reconnect when the server crashes. The download for that plugin was gone so I will be making it today.[/QUOTE] Someone reposted a fixed version of it. [url]http://facepunch.com/showthread.php?t=989733&p=41762485&viewfull=1#post41762485[/url] :)
Sorry, you need to Log In to post a reply to this thread.