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 `"`