29.08.2014, 17:50
(
Последний раз редактировалось nickdodd25; 29.08.2014 в 22:59.
)
Quote:
Returns an empty statement for some reason.
http://instantgaming.net/ Код:
Live Server Status General Information Hostname Gamemode Players / Map Weather Time Version Password Online Players Player ID Nickname Score |
EDIT: Kinda found a no so great workaround but it does work.
I have a while loop and it loops until players online is 0 or greater and maxplayers is 1 or greater, during the loop it pauses for a second to avoid spamming the server. And if its offline it simply just breaks the loop.
So it basically keeps retrying until it gets a actual player/maxplayer count that's right. Seems to be running smoothly atm. Kind of a not so efficient way to do it but it does work. I'm sure there's a better way.