GetWeather: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
int [[getWeather]] ()
<syntaxhighlight lang="lua">int getWeather ()</syntaxhighlight>


==Example==
==Example==
id = [[getWeather]] ()
<syntaxhighlight lang="lua">id = getWeather ()
[[serverChat]] ( "The current weather id is ", id )
serverChat ( "The current weather id is ", id )</syntaxhighlight>

Revision as of 02:29, 18 May 2006

Description

This function returns the current weather id.

Syntax

int getWeather ()

Example

id = getWeather ()
serverChat ( "The current weather id is ", id )