UtfSeek: 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 byte position at specified character position. ==Syntax== <syntaxhighlight lang="lua"> int utfSeek ( string theString, int positio...")
 
mNo edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 10: Line 10:
===Required Arguments===
===Required Arguments===
*'''theString:''' The [[string]].
*'''theString:''' The [[string]].
*'''position:''' An [[int]] with the specified charachter position.
*'''position:''' An [[int]] with the specified character position.


===Returns===
===Returns===
Returns an ''[[int]]'' if the function was successful, ''false'' otherwise.
Returns an ''[[int]]'' if the function was successful, ''false'' otherwise.
===Example===
<section name="Example" class="both" show="true">
<syntaxhighlight lang="lua">
local teststring = "Hello World"
local testseek = utfSeek ( teststring, 5 )
outputChatBox ( testseek )
</syntaxhighlight>
</section>


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

Latest revision as of 10:42, 21 May 2023