GetResourceName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Black Dragon (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function is used to get resources names. | |||
This | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string getResourceName ( resource ) | string getResourceName ( resource ) | ||
Line 10: | Line 8: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''resource:''' The resource you wish to get the name of. | |||
*''' | |||
===Returns=== | ===Returns=== | ||
Returns a string with the resource name in it, or ''false'' if the resource does not exist. | |||
==Example== | ==Example== |
Revision as of 16:35, 20 June 2007
This function is used to get resources names.
Syntax
string getResourceName ( resource )
Required Arguments
- resource: The resource you wish to get the name of.
Returns
Returns a string with the resource name in it, or false if the resource does not exist.
Example
This example does...
--This line does... blabhalbalhb --abababa --This line does this... mooo
See Also
Template:FunctionArea functions -- leave this unless you complete the function