From 928091864f27d797dbc9954b30d8b6cbf5500836 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 18 Jul 2006 09:20:57 +0000 Subject: [PATCH] Added request am41367 (devcones) --- plugins/cstrike/stats_logging.sma | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/cstrike/stats_logging.sma b/plugins/cstrike/stats_logging.sma index 6333ed9e..992396d2 100755 --- a/plugins/cstrike/stats_logging.sma +++ b/plugins/cstrike/stats_logging.sma @@ -60,12 +60,13 @@ public client_disconnect(id) new szTeam[16], szName[32], szAuthid[32], iStats[8], iHits[8], szWeapon[24] new iUserid = get_user_userid(id) + new _max = xmod_get_maxweapons() get_user_team(id, szTeam, 15) get_user_name(id, szName, 31) get_user_authid(id, szAuthid, 31) - for (new i = 1 ; i < 31 ; ++i) + for (new i = 1 ; i < _max ; ++i) { if (get_user_wstats(id, i, iStats, iHits)) {