From d3e7ec51f8cd77f7f5426bce5ee0047f95f98b32 Mon Sep 17 00:00:00 2001 From: kalen Date: Wed, 9 Jul 2025 07:11:26 +0000 Subject: [PATCH] Update FIXING_SCRIPTS.md --- FIXING_SCRIPTS.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/FIXING_SCRIPTS.md b/FIXING_SCRIPTS.md index 753ee2a..bc37460 100644 --- a/FIXING_SCRIPTS.md +++ b/FIXING_SCRIPTS.md @@ -103,3 +103,16 @@ void main() SetLocalInt(oSelf, "NBOARD_POST_COUNT", nPostCount); } ``` + +## Multi-line strings / Raw strings +The NWNEE compiler now supports multiline strings or raw strings which means you can write strings which span multiple lines and don't need to concatenate them or anything crazy like that: +```c + dbresult dbResult = SqlPrepareQuery( + R"SELECT notice_id,pc_id,creation_time,title,content + FROM notices + WHERE board_tag=$1 + AND creation_time > $2 + ORDER BY creation_time + DESC LIMIT 6 OFFSET $3"); +``` +Simply prepend the string with `R"` instead of the regular `"` and end it with a regular `"`