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:
parent
be731888e7
commit
f968fc1293
@ -81,7 +81,10 @@ public OnPluginStart()
|
|||||||
public Action:Command_SayChat(client, args)
|
public Action:Command_SayChat(client, args)
|
||||||
{
|
{
|
||||||
decl String:text[192];
|
decl String:text[192];
|
||||||
GetCmdArgString(text, sizeof(text));
|
if (GetCmdArgString(text, sizeof(text)) < 1)
|
||||||
|
{
|
||||||
|
return Plugin_Continue;
|
||||||
|
}
|
||||||
|
|
||||||
new startidx;
|
new startidx;
|
||||||
if (text[strlen(text)-1] == '"')
|
if (text[strlen(text)-1] == '"')
|
||||||
|
@ -111,7 +111,10 @@ public Action:Command_Say(client, args)
|
|||||||
{
|
{
|
||||||
decl String:text[192], String:command[64];
|
decl String:text[192], String:command[64];
|
||||||
new startidx = 0;
|
new startidx = 0;
|
||||||
GetCmdArgString(text, sizeof(text));
|
if (GetCmdArgString(text, sizeof(text)) < 1)
|
||||||
|
{
|
||||||
|
return Plugin_Continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (text[strlen(text)-1] == '"')
|
if (text[strlen(text)-1] == '"')
|
||||||
{
|
{
|
||||||
|
@ -133,7 +133,10 @@ public ConVarChange_Mapcyclefile(Handle:convar, const String:oldValue[], const S
|
|||||||
public Action:Command_Say(client, args)
|
public Action:Command_Say(client, args)
|
||||||
{
|
{
|
||||||
decl String:text[192];
|
decl String:text[192];
|
||||||
GetCmdArgString(text, sizeof(text));
|
if (GetCmdArgString(text, sizeof(text)) < 1)
|
||||||
|
{
|
||||||
|
return Plugin_Continue;
|
||||||
|
}
|
||||||
|
|
||||||
new startidx;
|
new startidx;
|
||||||
if (text[strlen(text)-1] == '"')
|
if (text[strlen(text)-1] == '"')
|
||||||
@ -310,4 +313,4 @@ FindAndSetNextMap()
|
|||||||
|
|
||||||
GetArrayString(g_MapList, g_MapPos, mapName, sizeof(mapName));
|
GetArrayString(g_MapList, g_MapPos, mapName, sizeof(mapName));
|
||||||
SetConVarString(g_Cvar_Nextmap, mapName);
|
SetConVarString(g_Cvar_Nextmap, mapName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user