From 5f210d340419ce126b90e9cda6724d49b9e9a957 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Thu, 8 May 2014 16:18:50 +0200 Subject: [PATCH] Append a note about usage of the new buffer size (related to ce4ef6e272) --- plugins/include/amxconst.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/include/amxconst.inc b/plugins/include/amxconst.inc index 8684397f..e428fda1 100755 --- a/plugins/include/amxconst.inc +++ b/plugins/include/amxconst.inc @@ -17,6 +17,11 @@ * This is the buffer size AMX Mod X uses internally to retrieve strings from plugins. * Most natives that take strings as arguments will implicitly truncate those to this maximum length. * This has been raised to the current value with AMXX 1.8.3. Previously the limit was 3072. + * + * @note This is here mainly for documentation purposes. By default plugins don't even have enough + * memory available to create an array of this size. You probably should not use this to + * actually *declare* a buffer unless you *absolutely* have to. Look at #pragma dynamic + * to increase a plugins available memory. */ #define MAX_STRING_LENGTH 16384