|
mplay_init_tcpip(addr) |
|
addr = The IP direction of the server to connect via internet. Can be a DNS name like "www.thegame.com" or a plain ip like "200.89.44.210’"
Example:
This function initializes a connection via internet to the target server, that server will hold the sessions.
Sometimes the function is unable to connect the server. Also you'll probably want the user input manually the IP to connect a server they want, to achieve this you can use something like this:
Example:
The above example asks the user for a server’s IP and then tries to connect using that ip, if it doesn’t works tells the user the connection failed. Only the practice can make you fully understand a function ;).
gml_josea – Revision #1 |