Skip to main content
يكتب صفرا أو أكثر من القيم إلى Windows console الحالية عبر stdout باستخدام warning console text attribute. إذا لم تكن هناك console window، يرجع الاستدعاء بدون تحويل أو كتابة أي شيء. عند وجود console، يتم تحويل كل argument باستخدام Lua string conversion، ويتم ربط القيم بعلامات tab، ثم تكتب عبر runtime value. إذا رفع Lua string conversion خطأ، لا تلتقطه rconsolewarn. تضبط 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.

الصيغة

أسماء بديلة

  • consolewarn

الوسائط

مثال

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.