UtfSeek

From Multi Theft Auto: Wiki
Revision as of 13:29, 11 August 2014 by Thisdp . (talk | contribs) (→‎Example)
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function UtfSeek needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

The function returns the byte position at specified character position.

Syntax

int utfSeek ( string theString, int position )

Required Arguments

  • theString: The string.
  • position: An int with the specified charachter position.

Returns

Returns an int if the function was successful, false otherwise.

Example

Click to collapse [-]
Example
local teststring = "Hello World"
local testseek = utfSeek ( teststring, 5 )
outputChatBox ( seek )

See Also