SourceComms: Fixed plugin error

This commit is contained in:
BotoX
2016-08-10 03:05:12 +02:00
parent 3d3034932a
commit 883938b88c
+4 -1
View File
@@ -248,6 +248,9 @@ public OnMapStart()
public OnMapEnd() public OnMapEnd()
{ {
if (!g_hDatabase)
return;
decl String:Query[2048]; decl String:Query[2048];
Format(Query, sizeof(Query), Format(Query, sizeof(Query),
"UPDATE %s_comms \ "UPDATE %s_comms \
@@ -1459,7 +1462,7 @@ public Query_UnBlockSelect(Handle:owner, Handle:hndl, const String:error[], any:
if (type == TYPE_UNSILENCE) if (type == TYPE_UNSILENCE)
{ {
// check result for possible combination with temp and time punishments (temp was skipped in code above) // check result for possible combination with temp and time punishments (temp was skipped in code above)
SetPackPosition(data, 16); SetPackPosition(data, DataPackPos:16);
if (g_MuteType[target] > bNot) if (g_MuteType[target] > bNot)
{ {
WritePackCell(data, TYPE_UNMUTE); WritePackCell(data, TYPE_UNMUTE);