This project is read-only.

Problem using API

Apr 17, 2016 at 3:46 PM
When I try to get PlayerInfo / Rules the function returns null, If i use the sample Application it doesn'T work either. Do i need to change server settings? thx for help and sorry for my bad english skill (used exactly the same code as in your sample Application)
Apr 19, 2016 at 10:46 AM
Hi fzsmaurice,
function would return null when there is an exception and by default it wont throw the exception.
You can tell it to throw the exception by setting throwExceptions parameter of ServerQuery.GetServerInstance method to true.
Thrown exception would give you details on why its not working.

I could try to connect to the server if you can provide the server address.

Also give some more information on server like
Are you able to connect to the server through the game?
Is it a local server which u made or a public server?
Are you not able to query any server or just that server?
Are you or the server behind any router? if yes,have you done port forwarding?
Apr 19, 2016 at 9:09 PM
Thx for the fast reply,
I can connect to the server and can send rcon commands, but GetRules and GetPlayers return a null.

Are you able to connect to the server through the game?
Yes I am
Is it a local server which u made or a public server?
Rented at a plublic provider for Gameservers

Are you not able to query any server or just that server?
I can connect, but there is also a null if i use Getplayer / GetRules


Are you or the server behind any router? if yes,have you done port forwarding?
the game-ports are forwarded by the provider, are there other ports which are needed?
Jun 25, 2016 at 9:20 AM
Edited Jun 25, 2016 at 9:20 AM
hi fzsmaurice,
Please share the server address.I will try to query it.