How does this work?
Name - variable - $Pref::Server::Name
Players - variable - $Server::Playercount
Max Players - variable - $Pref::Server::MaxPlayers
Passworded true/false - function
function checkPass()
{
if($Pref::Server::Password $= "")
{
return false;
}
else
{
return true;
}
}
[passworded y/n variable] = checkPass();
Well you don't seem to get my explanation.
The server name is gotten with the variable "$Pref::Server::Name".
The amount of players is gotten with the variable "$Server::Playercount".
The MAXIMUM amount of players is the variable "$Pref::Server::MaxPlayers".
(You put $Server::Playercount @ "/" @ $Pref::Server::Maxplayers to get something like 5/32).
This is a FUNCTION that checks if the server is under a password :
function checkPass()
{
if($Pref::Server::Password $= "")
{
return false;
}
else
{
return true;
}
}
So if you wanted a variable named "%pwd", for example, to state if the server is passworded or not, you would do this :
%pwd = checkPass();
Is that clear?