Global variables: Difference between revisions

From Dark Signs Online
Jump to navigationJump to search
(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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Global variables are variables set in DarkSigns Online which can not have any other value assigned to them.
Global variables are variables set in Dark Signs Online which can not have any other value assigned to them.


== User Specific Variables ==
== User Specific Variables ==
Line 15: Line 15:
</code>
</code>


== Server Specific Variable ==
== Server Specific Variables ==


<code>
<code>
Line 21: Line 21:


'''$serverip''' The current server ip that a script is being run on
'''$serverip''' The current server ip that a script is being run on
'''$serverport''' The current server port that a script is being run on
</code>
</code>

Latest revision as of 03:56, 19 March 2024

Global variables are variables set in Dark Signs 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 Variables

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

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

$serverport The current server port that a script is being run on