Return full time in arrayfunction GetTimeTable()
{
timestamptable <- array(5,0);
local time = GetFullTime().tostring();
timestamptable[0] = time.slice(0,3);
timestamptable[1] = time.slice(4,7);
timestamptable[2] = time.slice(8,10);
timestamptable[3] = time.slice(11,19);
timestamptable[4] = time.slice(20,24);
return timestamptable;
}
How to use it: GetTimeTable()[id], id can be 0,1,2,3,4 but not higher or lower. 0 returns day in 3 letters, 1 returns month in 3 letters, 2 returns day number in 1 integer, 3 returns the time in 8 characters, 4 returns year in 1 integer.
Example:
function onConsoleInput(cmd,text)
{
print("Executing command: " + cmd + " with params: " + text + " at " + GetTimeTable()[0] + "/" + GetTimeTable()[1] + "/" + GetTimeTable()[3] );
}
Sending script error messages w/o forcing an error 2 ways.function PrintErrorMessage(errortitle,optionalparams)
{
if(optionalparams)
throw("\"" + errortitle + "\" , possible cause: " + optionalparams);
else
throw("\"" + errortitle + "\"");
}
How to use it: PrintErrorMessage("hello","apple");
Images: 
Method 2function PrintErrorMessage2(errortitle,optionalparams)
{
if(optionalparams)
error("Error at \"" + errortitle + "\" , possible cause: " + optionalparams);
else
error("Error at \"" + errortitle + "\"");
}
How to use it: PrintErrorMessage("hello","apple");
Images: 
To be continued.
If you have useful snippets, post them over here.
PS: SQ3.0.2 is the Squirrel version used by LU.