@@ -1238,7 +1238,8 @@ public Query_AddBlockInsert(Handle:owner, Handle:hndl, const String:error[], any
1238
1238
ResetPack (data );
1239
1239
new length = ReadPackCell (data );
1240
1240
new type = ReadPackCell (data );
1241
- decl String :reason [256 ], String :name [MAX_NAME_LENGTH ], String :auth [64 ], String :adminAuth [32 ], String :adminIp [20 ];
1241
+ new String :reason [256 ];
1242
+ decl String :name [MAX_NAME_LENGTH ], String :auth [64 ], String :adminAuth [32 ], String :adminIp [20 ];
1242
1243
ReadPackString (data , name , sizeof (name ));
1243
1244
ReadPackString (data , auth , sizeof (auth ));
1244
1245
ReadPackString (data , reason , sizeof (reason ));
@@ -1252,7 +1253,8 @@ public Query_AddBlockInsert(Handle:owner, Handle:hndl, const String:error[], any
1252
1253
1253
1254
public Query_UnBlockSelect (Handle :owner , Handle :hndl , const String :error [], any :data )
1254
1255
{
1255
- decl String :adminAuth [30 ], String :targetAuth [30 ], String :reason [256 ];
1256
+ decl String :adminAuth [30 ], String :targetAuth [30 ];
1257
+ new String :reason [256 ];
1256
1258
1257
1259
ResetPack (data );
1258
1260
new adminUserID = ReadPackCell (data );
@@ -1374,7 +1376,7 @@ public Query_UnBlockSelect(Handle:owner, Handle:hndl, const String:error[], any:
1374
1376
WritePackString (dataPack , g_sName [target ]);
1375
1377
WritePackString (dataPack , targetAuth );
1376
1378
1377
- decl String :unbanReason [sizeof (reason ) * 2 + 1 ];
1379
+ new String :unbanReason [sizeof (reason ) * 2 + 1 ];
1378
1380
SQL_EscapeString (g_hDatabase , reason , unbanReason , sizeof (unbanReason ));
1379
1381
1380
1382
decl String :query [2048 ];
@@ -1517,7 +1519,7 @@ public Query_ProcessQueue(Handle:owner, Handle:hndl, const String:error[], any:d
1517
1519
1518
1520
decl String :auth [64 ];
1519
1521
decl String :name [MAX_NAME_LENGTH ];
1520
- decl String :reason [256 ];
1522
+ new String :reason [256 ];
1521
1523
decl String :adminAuth [64 ], String :adminIp [20 ];
1522
1524
decl String :query [4096 ];
1523
1525
@@ -1529,7 +1531,7 @@ public Query_ProcessQueue(Handle:owner, Handle:hndl, const String:error[], any:d
1529
1531
1530
1532
decl String :sAuthEscaped [sizeof (auth ) * 2 + 1 ];
1531
1533
decl String :banName [MAX_NAME_LENGTH * 2 + 1 ];
1532
- decl String :banReason [sizeof (reason ) * 2 + 1 ];
1534
+ new String :banReason [sizeof (reason ) * 2 + 1 ];
1533
1535
decl String :sAdmAuthEscaped [sizeof (adminAuth ) * 2 + 1 ];
1534
1536
decl String :sAdmAuthYZEscaped [sizeof (adminAuth ) * 2 + 1 ];
1535
1537
@@ -1626,7 +1628,8 @@ public Query_VerifyBlock(Handle:owner, Handle:hndl, const String:error[], any:us
1626
1628
if (NotApplyToThisServer (SQL_FetchInt (hndl , 8 )))
1627
1629
continue ;
1628
1630
1629
- decl String :sReason [256 ], String :sAdmName [MAX_NAME_LENGTH ], String :sAdmAuth [64 ];
1631
+ new String :sReason [256 ];
1632
+ decl String :sAdmName [MAX_NAME_LENGTH ], String :sAdmAuth [64 ];
1630
1633
new remaining_time = SQL_FetchInt (hndl , 0 );
1631
1634
new length = SQL_FetchInt (hndl , 1 );
1632
1635
new type = SQL_FetchInt (hndl , 2 );
@@ -1999,7 +2002,8 @@ stock CreateBlock(client, targetId = 0, length = -1, type, const String:sReason[
1999
2002
PrintToServer (" CreateBlock(admin: %d , target: %d , length: %d , type: %d , reason: %s , args: %s )" , client , targetId , length , type , sReason , sArgs );
2000
2003
#endif
2001
2004
2002
- decl target_list [MAXPLAYERS ], target_count , bool :tn_is_ml , String :target_name [MAX_NAME_LENGTH ], String :reason [256 ];
2005
+ decl target_list [MAXPLAYERS ], target_count , bool :tn_is_ml , String :target_name [MAX_NAME_LENGTH ];
2006
+ new String :reason [256 ];
2003
2007
new bool :skipped = false ;
2004
2008
2005
2009
// checking args
@@ -2194,7 +2198,8 @@ stock ProcessUnBlock(client, targetId = 0, type, String:sReason[] = "", const St
2194
2198
PrintToServer (" ProcessUnBlock(admin: %d , target: %d , type: %d , reason: %s , args: %s )" , client , targetId , type , sReason , sArgs );
2195
2199
#endif
2196
2200
2197
- decl target_list [MAXPLAYERS ], target_count , bool :tn_is_ml , String :target_name [MAX_NAME_LENGTH ], String :reason [256 ];
2201
+ decl target_list [MAXPLAYERS ], target_count , bool :tn_is_ml , String :target_name [MAX_NAME_LENGTH ];
2202
+ new String :reason [256 ];
2198
2203
2199
2204
if (targetId )
2200
2205
{
@@ -2405,7 +2410,8 @@ stock ProcessUnBlock(client, targetId = 0, type, String:sReason[] = "", const St
2405
2410
2406
2411
stock bool :TempUnBlock (Handle :data )
2407
2412
{
2408
- decl String :adminAuth [30 ], String :targetAuth [30 ], String :reason [256 ];
2413
+ decl String :adminAuth [30 ], String :targetAuth [30 ];
2414
+ new String :reason [256 ];
2409
2415
ResetPack (data );
2410
2416
new adminUserID = ReadPackCell (data );
2411
2417
new targetUserID = ReadPackCell (data );
@@ -2507,7 +2513,7 @@ stock InsertTempBlock(length, type, const String:name[], const String:auth[], co
2507
2513
LogMessage (" Saving punishment for %s into queue" , auth );
2508
2514
2509
2515
decl String :banName [MAX_NAME_LENGTH * 2 + 1 ];
2510
- decl String :banReason [256 * 2 + 1 ];
2516
+ new String :banReason [256 * 2 + 1 ];
2511
2517
decl String :sAuthEscaped [64 * 2 + 1 ];
2512
2518
decl String :sAdminAuthEscaped [64 * 2 + 1 ];
2513
2519
decl String :sQuery [4096 ], String :sQueryVal [2048 ];
@@ -2875,7 +2881,7 @@ stock SavePunishment(admin = 0, target, type, length = -1, const String:reason[]
2875
2881
{
2876
2882
// Accepts length in minutes, writes to db in seconds! In all over places in plugin - length is in minutes.
2877
2883
decl String :banName [MAX_NAME_LENGTH * 2 + 1 ];
2878
- decl String :banReason [256 * 2 + 1 ];
2884
+ new String :banReason [256 * 2 + 1 ];
2879
2885
decl String :sAuthidEscaped [64 * 2 + 1 ];
2880
2886
decl String :sAdminAuthIdEscaped [64 * 2 + 1 ];
2881
2887
decl String :sAdminAuthIdYZEscaped [64 * 2 + 1 ];
@@ -3054,7 +3060,7 @@ public Native_SetClientMute(Handle:hPlugin, numParams)
3054
3060
return ThrowNativeError (SP_ERROR_NATIVE , " Removing punishments from DB is not allowed!" );
3055
3061
}
3056
3062
3057
- decl String :sReason [256 ];
3063
+ new String :sReason [256 ];
3058
3064
GetNativeString (5 , sReason , sizeof (sReason ));
3059
3065
3060
3066
if (muteState )
@@ -3108,7 +3114,7 @@ public Native_SetClientGag(Handle:hPlugin, numParams)
3108
3114
return ThrowNativeError (SP_ERROR_NATIVE , " Removing punishments from DB is not allowed!" );
3109
3115
}
3110
3116
3111
- decl String :sReason [256 ];
3117
+ new String :sReason [256 ];
3112
3118
GetNativeString (5 , sReason , sizeof (sReason ));
3113
3119
3114
3120
if (gagState )
0 commit comments