I want to display the number of players online, using this api query. I got stuck receiving the number of players in the message.
I use the following code in script:
SampQuery api = new SampQuery("184.103.47.77", 7777, 'i');
string sStatus = String.Format("Online players: {0}", /* STUCK HERE */);
onlinePlayers.Text = sStatus;
How can I get data from the api
variable into the status string?
This is the API I'm using:
https://github.com/zeelorenc/SA-MP-Server-Query-Class
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…