---
title: "print | open.mp"
description: "Prints a string to the server console (not in-game chat) and logs (log.txt)."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/print
language: th
---

# print

## คำอธิบาย

Prints a string to the server console (not in-game chat) and logs (log.txt).

| Name | Description |
| --- | --- |
| string\[\] | The string to print. |

## ส่งคืน

This function does not return any specific values.

## ตัวอย่าง

```c
public OnGameModeInit()
{
    print("Gamemode started.");
    return 1;
}
```

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

-   printf: Print a formatted message into the server logs and console.
