$gServerTimeVar don't retain values

Forum Archive - from http://theuniversal.net
Locked
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

$gServerTimeVar don't retain values

Post by zaroba »

Software:Universal Client
Version Number:
________________________________________________________________________
Location

________________________________________________________________________
Description:

Code: Select all

Event( "&command" "testvar")
	{
	$gServerTimeVar1=123
	*say $gServerTimeVar1
	}
Output is 123

Then do:

Code: Select all

Event( "&command" "testvar2")
	{
	*say $gServerTimeVar1
	}
output is 0
________________________________________________________________________
Steps to Replicate:
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

There's no such thing as a server time var. (So your script is just creating a local variable in the first event). You can store time values in standard $gServerVars
Locked