From d074b68edffc05a0e6a0dce2cfe1d3fb45fc54c5 Mon Sep 17 00:00:00 2001 From: Greyscale Date: Mon, 13 Apr 2009 06:00:58 +0200 Subject: [PATCH] Fixed all MAXPLAYERS+1 by replacing them with MAXPLAYERS + 1 --- src/zr/damagecontrol.inc | 2 +- src/zr/weapons/menu_weapons.inc | 2 +- src/zr/weapons/restrict.inc | 2 +- src/zr/zadmin.inc | 2 +- src/zr/zombiereloaded.inc | 44 ++++++++++++++++----------------- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/zr/damagecontrol.inc b/src/zr/damagecontrol.inc index cad3aaf..e6d5774 100644 --- a/src/zr/damagecontrol.inc +++ b/src/zr/damagecontrol.inc @@ -20,7 +20,7 @@ enum ZRHooks Hook_OnTakeDamage } -new gHooks[MAXPLAYERS+1][ZRHooks]; +new gHooks[MAXPLAYERS + 1][ZRHooks]; InitDmgControl() { diff --git a/src/zr/weapons/menu_weapons.inc b/src/zr/weapons/menu_weapons.inc index a529a6e..6891acc 100644 --- a/src/zr/weapons/menu_weapons.inc +++ b/src/zr/weapons/menu_weapons.inc @@ -20,7 +20,7 @@ enum WeaponsMenu /** * 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. diff --git a/src/zr/weapons/restrict.inc b/src/zr/weapons/restrict.inc index 23240da..807ebf6 100644 --- a/src/zr/weapons/restrict.inc +++ b/src/zr/weapons/restrict.inc @@ -19,7 +19,7 @@ new Handle:kvWeaponGroups = INVALID_HANDLE; /** * 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. diff --git a/src/zr/zadmin.inc b/src/zr/zadmin.inc index a87ea25..1e072de 100644 --- a/src/zr/zadmin.inc +++ b/src/zr/zadmin.inc @@ -7,7 +7,7 @@ */ #include "include/adminmenu.inc" -new curMenuClass[MAXPLAYERS+1]; +new curMenuClass[MAXPLAYERS + 1]; bool:ZRAdminMenu(client) { diff --git a/src/zr/zombiereloaded.inc b/src/zr/zombiereloaded.inc index f0c8e04..553dc7a 100644 --- a/src/zr/zombiereloaded.inc +++ b/src/zr/zombiereloaded.inc @@ -56,34 +56,34 @@ enum ZTeam #define LOG_MODULE_OFFSETS 1048576 // offsets.inc new bool:market; -new dxLevel[MAXPLAYERS+1]; +new dxLevel[MAXPLAYERS + 1]; new bool:zombieSpawned; -new bool:motherZombie[MAXPLAYERS+1]; -new bool:gZombie[MAXPLAYERS+1]; -new bool:gBlockMotherInfect[MAXPLAYERS+1]; -new bool:bZVision[MAXPLAYERS+1]; -//new bool:bZVisionOn[MAXPLAYERS+1]; -//new String:ZVisionOverlay[MAXPLAYERS+1][PLATFORM_MAX_PATH]; -new bool:dispHP[MAXPLAYERS+1]; -new bool:pProtect[MAXPLAYERS+1]; -new bool:gKilledByWorld[MAXPLAYERS+1] = {false, ...}; +new bool:motherZombie[MAXPLAYERS + 1]; +new bool:gZombie[MAXPLAYERS + 1]; +new bool:gBlockMotherInfect[MAXPLAYERS + 1]; +new bool:bZVision[MAXPLAYERS + 1]; +//new bool:bZVisionOn[MAXPLAYERS + 1]; +//new String:ZVisionOverlay[MAXPLAYERS + 1][PLATFORM_MAX_PATH]; +new bool:dispHP[MAXPLAYERS + 1]; +new bool:pProtect[MAXPLAYERS + 1]; +new bool:gKilledByWorld[MAXPLAYERS + 1] = {false, ...}; -new pClass[MAXPLAYERS+1]; -new pNextClass[MAXPLAYERS+1]; +new pClass[MAXPLAYERS + 1]; +new pNextClass[MAXPLAYERS + 1]; -new pTimeLeft[MAXPLAYERS+1]; +new pTimeLeft[MAXPLAYERS + 1]; -new Float:spawnLoc[MAXPLAYERS+1][3]; -new Float:bufferLoc[MAXPLAYERS+1][3]; -new bool:ztele_spawned[MAXPLAYERS+1] = {false, ...}; -new bool:bufferLocSaved[MAXPLAYERS+1] = {false, ...}; -new ztele_countdown[MAXPLAYERS+1] = {-1, ...}; -new ztele_count[MAXPLAYERS+1]; +new Float:spawnLoc[MAXPLAYERS + 1][3]; +new Float:bufferLoc[MAXPLAYERS + 1][3]; +new bool:ztele_spawned[MAXPLAYERS + 1] = {false, ...}; +new bool:bufferLocSaved[MAXPLAYERS + 1] = {false, ...}; +new ztele_countdown[MAXPLAYERS + 1] = {-1, ...}; +new ztele_count[MAXPLAYERS + 1]; new bool:ztele_online = false; new Handle:ztele_startup_timer = INVALID_HANDLE; -new Handle:ztele_countdown_timer[MAXPLAYERS+1] = {INVALID_HANDLE, ...}; -new Handle:ztele_cooldown_timer[MAXPLAYERS+1] = {INVALID_HANDLE, ...}; +new Handle:ztele_countdown_timer[MAXPLAYERS + 1] = {INVALID_HANDLE, ...}; +new Handle:ztele_cooldown_timer[MAXPLAYERS + 1] = {INVALID_HANDLE, ...}; new maxclients; @@ -102,7 +102,7 @@ new Handle:pList = INVALID_HANDLE; #define TRESPAWN 5 #define TZVISION 6 -new Handle:tHandles[MAXPLAYERS+1][MAXTIMERS]; +new Handle:tHandles[MAXPLAYERS + 1][MAXTIMERS]; new QueryCookie:mat_dxlevel;