---
title: "toupper | open.mp"
description: "This function changes a single character to uppercase."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/toupper
language: th
---

# toupper

## คำอธิบาย

This function changes a single character to uppercase.

| Name | Description |
| --- | --- |
| c | The character to change to uppercase. |

## ส่งคืน

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

## ตัวอย่าง

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

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [tolower](https://omp.itsneufox.com/th/docs/scripting/functions/tolower)
