Blockland Forums > Modification Help
My scripting problems: 0
Amade:
--- Quote from: Kalphiter on June 01, 2010, 03:06:33 PM ---I'm guessing you mean that it's not thrown off like schedule() through lag?
--- End quote ---
I'm not sure what I meant now but let's go with that
Sammygood:
Thanks Amade :cookieMonster:. One more question, how would you use getsimtime() in a script? I still don't understand how you would use it. For example(i don't think this would work):
--- Code: ---getsimtime()
simtime + %var
--- End code ---
OR
--- Code: ---getsimtime() + %var
--- End code ---
--- Code: ---echo(%simtime);
--- End code ---
???
Please just give a small example.
Sammygood:
Updated List
Sammygood:
Updated Again.
lordician:
You forgot to close the messageAll().
As in forgot this: )
Alsways check your script for any missing characters when finding a syntax error.
Also, i don't know if it is something critical, but i believe a set-up like this would be better:
--- Code: ---%toggletest = 0;
function servercmdtest(%client)
{
if (%toggletest=0)
{
messageAll("ToggleTest has been turned /c2ON.");
%toggletest = 1;
}
else if (%toggletest=1)
{
messageAll("ToggleTest has been turned /c2OFF.");
%toggletest = 0;
}
}
--- End code ---