Well, the syntax is mostly correct. You need a semicolon after $time = "The time is..."
You should also be using local variables (%) instead of global variables ($).
I'm a little confused on what the fourth line is trying to do. First off, variable names can only be 1 word and can't include quotes. The line before it is the correct way to set a variable (minus the semicolon). I don't know what you think showclock does, but I can tell you that it doesn't do anything at all.
So I'll write up a short tutorial on how you'll have it show how long the server has been running for.
First, you have to make your function:
function showRuntime()
After this line you'll need to open a curly bracket.
Then you're going to want to store the runtime in a variable:
%runtime = getSimTime();
This line calls the function getSimTime which tells you how long the program has been running, then stores that value in %runtime.
However, getSimTime gives you the time in milliseconds. You're going to want to convert this to seconds so that you can format it (hours:minutes:seconds). So we want to divide it by 1000 (there's a thousand milliseconds in a second) and round down to get rid of those pesky milliseconds.
%runtime = mFloor(%runtime / 1000);
m as a prefix on a function stands for "math," and "floor" means round down (to the floor). There is also mCeil which rounds up (to the ceiling).
Now we want to format this so that instead of knowing the server has been running for 1253 seconds, we can know it's been running for 20:53.
%runtime = getTimeString(%runtime);
Then you're going to want to display it to the server.
announce("Blockland has been running for " @ %runtime);
Announce is the simplest function that displays text in chat to the entire server. The most confusing part about this should be @, which links two pieces of text together. In this case it forms the line "Blockland has been running for X".
So all together your script should look like this:
function showRuntime()
{
%runtime = getSimTime();
%runtime = mFloor(%runtime / 1000);
%runtime = getTimeString(%runtime);
announce("Blockland has been running for " @ %runtime);
}
This can actually be simplified into announce("Blockland has been running for " @ getTimeString(mFloor(getSimTime()/1000))); but that's a lot harder to understand, and lines like that are a primary reason that people have trouble learning from reading other's scripts.