SetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
*'''hour''': The hour of the new time (range 0-23)
*'''hour''': The hour of the new time (range 0-23)
*'''minute''': The minute of the new time (range 0-59)
*'''minute''': The minute of the new time (range 0-59)
==Returns==
Returns ''true'' if it was succesful, ''false otherwise.


==Example==
==Example==

Revision as of 16:18, 13 August 2007

This function sets the current time to the given time. It returns false if it fails.

Syntax

setTime ( int hour, int minute )

Required Arguments

  • hour: The hour of the new time (range 0-23)
  • minute: The minute of the new time (range 0-59)

Returns

Returns true if it was succesful, false otherwise.

Example

 setTime ( 18, 0 )
outputChatBox ( "Time changed to 18:00!" )

See Also

Shared