UtfSub: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} The function returns a sub string, from the specified positions on a character. ==Syntax== <syntaxhighlight lang="lua"> string utfSub( string theString, in...")
 
m (Removed {{Needs_Example}})
 
(5 intermediate revisions by 3 users not shown)
Line 15: Line 15:
===Returns===
===Returns===
Returns a ''[[string]]'' if the function was successful, ''false'' otherwise.
Returns a ''[[string]]'' if the function was successful, ''false'' otherwise.
===Example===
<section name="Example" class="both" show="true">
<syntaxhighlight lang="lua">
local mystring = "Example String"
outputChatBox( utfSub( mystring, 9, 15 ) )
</syntaxhighlight>
</section>


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

Latest revision as of 13:58, 2 July 2016