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 time as two ints (hour and minute).
This function returns the current weather as two ints (primary and secondary).


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


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

Revision as of 02:33, 1 April 2006

Description

This function returns the current weather as two ints (primary and secondary).

Syntax

int int getWeather ()

Example

primary, secondary = getWeather ()
serverChat ( "The current weather is ", primary, " and ", seconday )