MAX_PLAYERS: Fix plugins

This commit is contained in:
Arkshine
2015-02-01 19:20:55 +01:00
parent 1b350b627b
commit e441908230
32 changed files with 181 additions and 202 deletions

View File

@@ -57,12 +57,12 @@ public BulletDamage
public TAInfo
public FragInfo
new g_userPosition[MAX_PLAYERS]
new g_userState[MAX_PLAYERS]
new g_userPlayers[MAX_PLAYERS][32]
new g_userPosition[MAX_PLAYERS + 1]
new g_userState[MAX_PLAYERS + 1]
new g_userPlayers[MAX_PLAYERS + 1][32]
new g_Buffer[2048]
new g_Killers[MAX_PLAYERS][3]
new Float:g_DeathStats[MAX_PLAYERS]
new g_Killers[MAX_PLAYERS + 1][3]
new Float:g_DeathStats[MAX_PLAYERS + 1]
new g_center1_sync
new g_damage_sync
@@ -231,13 +231,13 @@ getTop15(){
public endGameStats(){
if ( EndPlayer ){
new players[32], inum
new players[MAX_PLAYERS], inum
get_players(players,inum)
for(new i = 0; i < inum; ++i)
displayStats(players[i],players[i])
}
else if ( EndTop15 ) {
new players[32], inum
new players[MAX_PLAYERS], inum
get_players(players,inum)
getTop15()
for(new i = 0; i < inum; ++i)

View File

@@ -16,8 +16,8 @@
#include <tsx>
#include <tsfun>
new g_pingSum[MAX_PLAYERS]
new g_pingCount[MAX_PLAYERS]
new g_pingSum[MAX_PLAYERS + 1]
new g_pingCount[MAX_PLAYERS + 1]
public plugin_init()
register_plugin("Stats Logging",AMXX_VERSION_STR,"AMXX Dev Team")