diff --git a/plugins/basechat.sp b/plugins/basechat.sp index 57a20831..b0a5bab0 100644 --- a/plugins/basechat.sp +++ b/plugins/basechat.sp @@ -81,7 +81,10 @@ public OnPluginStart() public Action:Command_SayChat(client, args) { decl String:text[192]; - GetCmdArgString(text, sizeof(text)); + if (GetCmdArgString(text, sizeof(text)) < 1) + { + return Plugin_Continue; + } new startidx; if (text[strlen(text)-1] == '"') diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index d90fe38e..f041068f 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -111,7 +111,10 @@ public Action:Command_Say(client, args) { decl String:text[192], String:command[64]; new startidx = 0; - GetCmdArgString(text, sizeof(text)); + if (GetCmdArgString(text, sizeof(text)) < 1) + { + return Plugin_Continue; + } if (text[strlen(text)-1] == '"') { diff --git a/plugins/nextmap.sp b/plugins/nextmap.sp index 2c25612c..40e9efc8 100644 --- a/plugins/nextmap.sp +++ b/plugins/nextmap.sp @@ -133,7 +133,10 @@ public ConVarChange_Mapcyclefile(Handle:convar, const String:oldValue[], const S public Action:Command_Say(client, args) { decl String:text[192]; - GetCmdArgString(text, sizeof(text)); + if (GetCmdArgString(text, sizeof(text)) < 1) + { + return Plugin_Continue; + } new startidx; if (text[strlen(text)-1] == '"') @@ -310,4 +313,4 @@ FindAndSetNextMap() GetArrayString(g_MapList, g_MapPos, mapName, sizeof(mapName)); SetConVarString(g_Cvar_Nextmap, mapName); -} \ No newline at end of file +}