GetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
==Description==
This function returns the current weather as two ints (primary and secondary).
This function returns the current time as two ints (hour and minute).


==Syntax==
==Syntax==
  int int [[getWeather]] ()
  int int [[getTime]] ()


==Example==
==Example==
  primary, secondary = [[getWeather]] ()
  hour, min = [[getTime]] ()
  [[serverChat]] ( "The current weather is ", primary, " and ", seconday )
  [[serverChat]] ( "The current time is ", hour, ":", min )

Revision as of 02:37, 1 April 2006

Description

This function returns the current time as two ints (hour and minute).

Syntax

int int getTime ()

Example

hour, min = getTime ()
serverChat ( "The current time is ", hour, ":", min )