UtfSub: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Removed {{Needs_Example}})
 
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.



Latest revision as of 13:58, 2 July 2016

The function returns a sub string, from the specified positions on a character.

Syntax

string utfSub( string theString, int Start, int End )

Required Arguments

  • theString: The string.
  • Start: An int with the start position.
  • End: An int with the end position.

Returns

Returns a string if the function was successful, false otherwise.

Example

Click to collapse [-]
Example
local mystring = "Example String"
outputChatBox( utfSub( mystring, 9, 15 ) )

See Also