Does anyone have any ideas on how to turn a string IP into an ip that you can connect to via console. For example if you do
connect "0.0.0.0:0"
in console, it will say bad address, but if you do
connect 0.0.0.0:0
it will connect to the correct server, does anyone know how to do this via code.
Pardon my paranoia, but with all of the backdoors going around lately, this sounds shady as hell.
What do you intend to do with the knowledge of how to do this?
Player/ConCommand or RunConsoleCommand? Don't know exactly what you're asking.
Oh, I am using it for a server switch menu, also using RunConsoleCommand( "connect", stringip )
Outputs bad address in console.
Then print stringip to see if it's a proper IP.
I have tried that, it prints the ip as a string.
The IP has to be a string. You can't have a number with more than 1 decimal place. Just tell us what it prints.
This is shady as all hell but fuck it. Here's what i used for a server portal I did a while back (clientside)
LocalPlayer():ConCommand("connect " .. "00.000.00.000:00000)
Sorry, you need to Log In to post a reply to this thread.