> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# rconsolewarn

> เขียนค่าจำนวนศูนย์ค่าหรือมากกว่าไปยัง Windows console ปัจจุบันผ่าน stdout ด้วย warning console text attribute หากไม่มี console window อยู่ การเรียกจะกลับโดยไม่แปลงหรือเขียนอะไร เมื่อมี console แต่ละ argument จะถูกแปลงด้วย Lua string conversion รวมด้วยอักขระ tab แล้วเขียนผ่าน runtime value หาก Lua string conversion ทำให้เกิด error rconsolewarn จะไม่จับ error นั้น function นี้ตั้งค่า console text attribute เป็น FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY ก่อนเขียน แล้วตั้งเป็น default console text color หลังจากนั้น ไม่เพิ่ม newline ไม่เพิ่ม warning prefix ไม่สร้างหรือแสดง console และไม่เรียก Luau warn หรือ Roblox Output consolewarn เป็น alias ของ function เดียวกัน

<div className="real-function-page">
  ```lua theme={null}
  rconsolewarn(...values?: ...any)
  ```

  ## Aliases

  * `consolewarn`

  ## Arguments

  <ParamField path={"...values"} type={"...any"}>
    ค่าเสริม หากมี console แต่ละ value จะถูกแปลงด้วย Lua string conversion และรวมด้วยอักขระ tab ก่อนเขียน
  </ParamField>

  ## ตัวอย่าง

  Write values to the current Windows console with the warning console text attribute. Values are tab-separated, no newline or warning prefix is added, and consolewarn is the same function.

  ```lua theme={null}
  rconsolecreate()
  rconsolewarn("Retrying request", 3)
  rconsolewarn("\n")
  ```
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.