From SA-MP Wiki

Jump to: navigation, search


Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


This function changes a single character to uppercase.

cThe character to change to uppercase.

Return Values:

The ASCII value of the character provided, but in uppercase.

Example Usage:

public OnPlayerText(playerid, text[])
    text[0] = toupper(text[0]);
    //This sets the first character to upper case.
    return 1;

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

tolower - Sets a character to lower case.

Personal tools