Usage
Syntax: str.charat(int index)
Returns a character.
Explanation
Returns the character in the string at the given index.
Note: Indexes in this case starts at 0 and ends at string length minus 1.
Example
function onCreated()
{
temp.string = "Hello World!";
echo(temp.string.charat(0));
}... Will output "H" in RC when on the serverside, or in your F2 menu when on the clientside. Note that the output is upper-case.
Categories
CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]