Local: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
A local varible only exists within the function between "on | A local varible only exists within the function it is specified. Therefore, it exists between "on function" and the functions "end" point. | ||
Example: | Example: | ||
<syntaxhighlight lang="lua">local playermoney = getPlayerMoney ( source )</syntaxhighlight> | <syntaxhighlight lang="lua">local playermoney = getPlayerMoney ( source )</syntaxhighlight> |
Revision as of 09:16, 18 May 2006
A local varible only exists within the function it is specified. Therefore, it exists between "on function" and the functions "end" point.
Example:
local playermoney = getPlayerMoney ( source )