Blockland Forums > Modification Help
Server Variables?
otto-san:
$server::time
Daenth:
--- Quote from: tyler0 on June 11, 2011, 02:24:51 PM ---thanks man.
EDIT: Need help with this now... this script isn't messaging the server.time
--- Code: ---package mrTime {
function gameConnection::onClientEnterGame(%client) {
Parent::onClientEnterGame(%client);
messageClient(%client,'',"Worked2");
}
};
activatePackage(mrTime);
function serverCmdStartTime(%client) {
$server.Time = "1:00";
messageClient(%client,'',"Time:" @ $server.Time);
}
--- End code ---
it only displays "Time:"
--- End quote ---
Placid:
--- Quote from: Daenth on June 11, 2011, 03:31:53 PM ---
--- End quote ---
in fact, no, his script should be working there. @ just takes away the space in between it; SPC works too.
I suggest you use like, $time instead of $server.time
tyler0:
--- Quote from: otto-san on June 11, 2011, 03:18:49 PM ---$server::time
--- End quote ---
Thanks
--- Code: ---package mrTime {
function gameConnection::onClientEnterGame(%client) {
Parent::onClientEnterGame(%client);
messageClient(%client,'',"Worked2");
}
};
activatePackage(mrTime);
function serverCmdStartTime(%client) {
$server::Time = "1:00";
messageClient(%client,'',"Time:" SPC $server::Time);
}
--- End code ---