fixed amb873 (say with no text would RTE)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401428
This commit is contained in:
David Anderson 2007-09-13 18:29:04 +00:00
parent be731888e7
commit f968fc1293
3 changed files with 13 additions and 4 deletions

View File

@ -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] == '"')

View File

@ -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] == '"')
{

View File

@ -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] == '"')