Mike Frank Yates
Member
So I've been working on a small project two days ago, its a program that works as a launcher. It's for connecting to game servers quickly, and retrieving server informations such as Online/Offline status, Number of players, Players list, Server version, Ping calculation(Which is closest to you.).
This my first question.
From the code bellow, I'm retrieving an IP list from the URL with a status id beside it. The id is to tell whether the node is possible to be connected or not. (1 = Online, 0 = Offline.) After I manage to get all the IP I am not sure how to separate them, because I need every IP separated and its ID's
After managing to separate the IP's and its ID's, I need the IP as Strings as well as the ID.
Then I will be doing Label1.Text = (IP String) for the IP's
As for the ID's I will be doing
If anyone could help me solve this, I would greatly thank you.
This my first question.
From the code bellow, I'm retrieving an IP list from the URL with a status id beside it. The id is to tell whether the node is possible to be connected or not. (1 = Online, 0 = Offline.) After I manage to get all the IP I am not sure how to separate them, because I need every IP separated and its ID's
Dim webClient As System.Net.WebClient = New System.Net.WebClient() Dim result As String = webClient.DownloadString("http://mta.vg/server.php?exp=list")
After managing to separate the IP's and its ID's, I need the IP as Strings as well as the ID.
Then I will be doing Label1.Text = (IP String) for the IP's
As for the ID's I will be doing
If (id String) = "1" Then Label2.Text = "Online" Else If (id string) = "2" Then Label2.Text = "Offline" End If
If anyone could help me solve this, I would greatly thank you.