Global variables

From Dark Signs Online
Revision as of 04:50, 18 March 2024 by Doridian (talk | contribs) (Created page with "Global variables are variables set in DarkSigns Online which can not have any other value assigned to them. == User Specific Variables == <code> '''$time''' Contains string of local time. '''$date''' Contains string of local date. '''$now''' Contains string of local date and time. '''$username''' Username of the current user. '''$dir''' The current directory of the current user. </code> == Server Specific Variable == <code> '''$serverdomain''' The current server...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Global variables are variables set in DarkSigns Online which can not have any other value assigned to them.

User Specific Variables

$time Contains string of local time.

$date Contains string of local date.

$now Contains string of local date and time.

$username Username of the current user.

$dir The current directory of the current user.

Server Specific Variable

$serverdomain The current server domain that a script is being run on

$serverip The current server ip that a script is being run on