return text
end
+
+
+
local details = ""
if spec.password == true then
details = details .. "*"
else
details = details .. "_"
end
- details = details .. " "
+ details = details .. " "
+
+ local playercount = ""
+
+ if spec.clients ~= nil and
+ spec.clients_max ~= nil then
+ playercount = string.format("%03d",spec.clients) .. "/" ..
+ string.format("%03d",spec.clients_max) .. " "
+ end
- return fs_escape_string(details) .. text
+ return playercount .. fs_escape_string(details) .. text
end
--------------------------------------------------------------------------------
if (servers[i]["clients_max"].asString().size()) {
- const char* clients_max_raw = servers[i]["clients"].asString().c_str();
+ const char* clients_max_raw = servers[i]["clients_max"].asString().c_str();
char* endptr = 0;
int numbervalue = strtol(clients_max_raw,&endptr,10);