Fixed all MAXPLAYERS+1 by replacing them with MAXPLAYERS + 1
This commit is contained in:
parent
6eb00ea307
commit
d074b68edf
@ -20,7 +20,7 @@ enum ZRHooks
|
|||||||
Hook_OnTakeDamage
|
Hook_OnTakeDamage
|
||||||
}
|
}
|
||||||
|
|
||||||
new gHooks[MAXPLAYERS+1][ZRHooks];
|
new gHooks[MAXPLAYERS + 1][ZRHooks];
|
||||||
|
|
||||||
InitDmgControl()
|
InitDmgControl()
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ enum WeaponsMenu
|
|||||||
/**
|
/**
|
||||||
* Array to store the client's current weapon menu
|
* Array to store the client's current weapon menu
|
||||||
*/
|
*/
|
||||||
new WeaponsMenu:curMenuWeapons[MAXPLAYERS+1];
|
new WeaponsMenu:curMenuWeapons[MAXPLAYERS + 1];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends main weapon menu to client.
|
* Sends main weapon menu to client.
|
||||||
|
@ -19,7 +19,7 @@ new Handle:kvWeaponGroups = INVALID_HANDLE;
|
|||||||
/**
|
/**
|
||||||
* Array that stores the "HookID" to be later unhooked on player disconnect.
|
* Array that stores the "HookID" to be later unhooked on player disconnect.
|
||||||
*/
|
*/
|
||||||
new gCanUseHookID[MAXPLAYERS+1];
|
new gCanUseHookID[MAXPLAYERS + 1];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query results returned when (un)restricting a weapon.
|
* Query results returned when (un)restricting a weapon.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "include/adminmenu.inc"
|
#include "include/adminmenu.inc"
|
||||||
new curMenuClass[MAXPLAYERS+1];
|
new curMenuClass[MAXPLAYERS + 1];
|
||||||
|
|
||||||
bool:ZRAdminMenu(client)
|
bool:ZRAdminMenu(client)
|
||||||
{
|
{
|
||||||
|
@ -56,34 +56,34 @@ enum ZTeam
|
|||||||
#define LOG_MODULE_OFFSETS 1048576 // offsets.inc
|
#define LOG_MODULE_OFFSETS 1048576 // offsets.inc
|
||||||
|
|
||||||
new bool:market;
|
new bool:market;
|
||||||
new dxLevel[MAXPLAYERS+1];
|
new dxLevel[MAXPLAYERS + 1];
|
||||||
|
|
||||||
new bool:zombieSpawned;
|
new bool:zombieSpawned;
|
||||||
new bool:motherZombie[MAXPLAYERS+1];
|
new bool:motherZombie[MAXPLAYERS + 1];
|
||||||
new bool:gZombie[MAXPLAYERS+1];
|
new bool:gZombie[MAXPLAYERS + 1];
|
||||||
new bool:gBlockMotherInfect[MAXPLAYERS+1];
|
new bool:gBlockMotherInfect[MAXPLAYERS + 1];
|
||||||
new bool:bZVision[MAXPLAYERS+1];
|
new bool:bZVision[MAXPLAYERS + 1];
|
||||||
//new bool:bZVisionOn[MAXPLAYERS+1];
|
//new bool:bZVisionOn[MAXPLAYERS + 1];
|
||||||
//new String:ZVisionOverlay[MAXPLAYERS+1][PLATFORM_MAX_PATH];
|
//new String:ZVisionOverlay[MAXPLAYERS + 1][PLATFORM_MAX_PATH];
|
||||||
new bool:dispHP[MAXPLAYERS+1];
|
new bool:dispHP[MAXPLAYERS + 1];
|
||||||
new bool:pProtect[MAXPLAYERS+1];
|
new bool:pProtect[MAXPLAYERS + 1];
|
||||||
new bool:gKilledByWorld[MAXPLAYERS+1] = {false, ...};
|
new bool:gKilledByWorld[MAXPLAYERS + 1] = {false, ...};
|
||||||
|
|
||||||
new pClass[MAXPLAYERS+1];
|
new pClass[MAXPLAYERS + 1];
|
||||||
new pNextClass[MAXPLAYERS+1];
|
new pNextClass[MAXPLAYERS + 1];
|
||||||
|
|
||||||
new pTimeLeft[MAXPLAYERS+1];
|
new pTimeLeft[MAXPLAYERS + 1];
|
||||||
|
|
||||||
new Float:spawnLoc[MAXPLAYERS+1][3];
|
new Float:spawnLoc[MAXPLAYERS + 1][3];
|
||||||
new Float:bufferLoc[MAXPLAYERS+1][3];
|
new Float:bufferLoc[MAXPLAYERS + 1][3];
|
||||||
new bool:ztele_spawned[MAXPLAYERS+1] = {false, ...};
|
new bool:ztele_spawned[MAXPLAYERS + 1] = {false, ...};
|
||||||
new bool:bufferLocSaved[MAXPLAYERS+1] = {false, ...};
|
new bool:bufferLocSaved[MAXPLAYERS + 1] = {false, ...};
|
||||||
new ztele_countdown[MAXPLAYERS+1] = {-1, ...};
|
new ztele_countdown[MAXPLAYERS + 1] = {-1, ...};
|
||||||
new ztele_count[MAXPLAYERS+1];
|
new ztele_count[MAXPLAYERS + 1];
|
||||||
new bool:ztele_online = false;
|
new bool:ztele_online = false;
|
||||||
new Handle:ztele_startup_timer = INVALID_HANDLE;
|
new Handle:ztele_startup_timer = INVALID_HANDLE;
|
||||||
new Handle:ztele_countdown_timer[MAXPLAYERS+1] = {INVALID_HANDLE, ...};
|
new Handle:ztele_countdown_timer[MAXPLAYERS + 1] = {INVALID_HANDLE, ...};
|
||||||
new Handle:ztele_cooldown_timer[MAXPLAYERS+1] = {INVALID_HANDLE, ...};
|
new Handle:ztele_cooldown_timer[MAXPLAYERS + 1] = {INVALID_HANDLE, ...};
|
||||||
|
|
||||||
new maxclients;
|
new maxclients;
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ new Handle:pList = INVALID_HANDLE;
|
|||||||
#define TRESPAWN 5
|
#define TRESPAWN 5
|
||||||
#define TZVISION 6
|
#define TZVISION 6
|
||||||
|
|
||||||
new Handle:tHandles[MAXPLAYERS+1][MAXTIMERS];
|
new Handle:tHandles[MAXPLAYERS + 1][MAXTIMERS];
|
||||||
|
|
||||||
new QueryCookie:mat_dxlevel;
|
new QueryCookie:mat_dxlevel;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user