08.05.2017, 03:21
Hey, I'm running a SA-MP Server Query script based on C# given here - https://sampwiki.blast.hk/wiki/Query_Mechanism/Csharp
When I integrate the script in my SA-MP Custom client and run it, I get thrown with this error.
"Index was outside the bounds of the array"
The error occurs when query is sent and received to update playersonline count.
Any help would be appreciated.
Code:
When I integrate the script in my SA-MP Custom client and run it, I get thrown with this error.
"Index was outside the bounds of the array"
The error occurs when query is sent and received to update playersonline count.
Any help would be appreciated.
Code:
Code:
string[] serverInfo; Query.Query sQuery = new Query.Query("XX.XX.XX.XX", 7777); sQuery.Send('i'); int count = sQuery.Receive(); serverInfo = sQuery.Store(count); PlayersOnline.Text = serverInfo[1];