UtfSub: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Removed {{Needs_Example}})
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
{{Needs_Example}}
The function returns a sub string, from the specified positions on a character.
The function returns a sub string, from the specified positions on a character.


Line 18: Line 17:


===Example===
===Example===
<section name="Example" class="both" show="true"></section>
<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