diff --git a/plugins/include/amxconst.inc b/plugins/include/amxconst.inc index 076d280c..60e0665d 100755 --- a/plugins/include/amxconst.inc +++ b/plugins/include/amxconst.inc @@ -11,9 +11,9 @@ #endif #define _amxconst_included -#define AMXX_VERSION 1.71 -#define AMXX_VERSION_NUM 171 -stock const AMXX_VERSION_STR[]="1.71" +#define AMXX_VERSION 1.72 +#define AMXX_VERSION_NUM 172 +stock const AMXX_VERSION_STR[]="1.72" #define ADMIN_ALL 0 /* everyone */ #define ADMIN_IMMUNITY (1<<0) /* flag "a" */ diff --git a/plugins/scrollmsg.sma b/plugins/scrollmsg.sma index 93575a03..e6fb3cfe 100755 --- a/plugins/scrollmsg.sma +++ b/plugins/scrollmsg.sma @@ -36,11 +36,12 @@ #include #define SPEED 0.3 +#define SCROLLMSG_SIZE 512 new g_startPos new g_endPos -new g_scrollMsg[384] -new g_displayMsg[384] +new g_scrollMsg[SCROLLMSG_SIZE] +new g_displayMsg[SCROLLMSG_SIZE] new Float:g_xPos new g_Length new g_Frequency @@ -90,12 +91,12 @@ public msgInit() public setMessage() { remove_task(123) /* remove current messaging */ - read_argv(1, g_scrollMsg, 380) + read_argv(1, g_scrollMsg, SCROLLMSG_SIZE-1) new hostname[64] get_cvar_string("hostname", hostname, 63) - replace(g_scrollMsg, 380, "%hostname%", hostname) + replace(g_scrollMsg, SCROLLMSG_SIZE-1, "%hostname%", hostname) g_Length = strlen(g_scrollMsg) new mytime[32]