Local: Difference between revisions

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


Example:
Example:
local playermoney = getPlayerMoney ( source )
<syntaxhighlight lang="lua">local playermoney = getPlayerMoney ( source )</syntaxhighlight>

Revision as of 09:14, 18 May 2006

A local varible only exists within the function between "on functionname" and the functions "end" point.

Example:

local playermoney = getPlayerMoney ( source )