UtfCode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} The function returns the string of the specified UTF code. ==Syntax== <syntaxhighlight lang="lua"> string utfChar ( int characterCode ) </syntaxhighlight> ===Require...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
The function returns the string of the specified UTF code.
The function returns the UTF codes of the given string.


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
string utfChar ( int characterCode )
int utfCode ( string theString )
</syntaxhighlight>
</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''characterCode:''' The UTF code, to get the string of.
*'''theString:''' The [[string]] to get the UTF code of.


===Returns===
===Returns===
Returns a ''[[string]]'' if the function was successful, ''false'' otherwise.
Returns an ''[[int]]'' if the function was successful, ''false'' otherwise.


==See Also==
==See Also==
{{Utility_functions}}
{{Utility_functions}}

Revision as of 15:33, 13 September 2011