From c2ee729380b9e71fb0f2341f369e20c36e29c03d Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Sat, 11 Oct 2014 22:41:18 +0200 Subject: [PATCH] Stats_logging: Replace len hardcoded contents by charsmax --- plugins/ts/stats_logging.sma | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ts/stats_logging.sma b/plugins/ts/stats_logging.sma index 22144deb..fd6e8ae7 100755 --- a/plugins/ts/stats_logging.sma +++ b/plugins/ts/stats_logging.sma @@ -29,13 +29,13 @@ public client_disconnect(id) { new iUserid = get_user_userid( id ) // team - get_user_info(id,"team", szTeam, 15 ) + get_user_info(id,"team", szTeam, charsmax(szTeam) ) - get_user_name(id, szName ,31 ) - get_user_authid(id, szAuthid , 31 ) + get_user_name(id, szName , charsmax(szName) ) + get_user_authid(id, szAuthid , charsmax(szAuthid) ) for(new i = 1 ; i < TSMAX_WEAPONS ; ++i ) { if( get_user_wstats( id , i ,iStats , iHits ) ) { - xmod_get_wpnlogname( i , szWeapon , 15 ) + xmod_get_wpnlogname( i , szWeapon , charsmax(szWeapon) ) log_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats^" (weapon ^"%s^") (shots ^"%d^") (hits ^"%d^") (kills ^"%d^") (headshots ^"%d^") (tks ^"%d^") (damage ^"%d^") (deaths ^"%d^")", szName,iUserid,szAuthid,szTeam,szWeapon,iStats[4],iStats[5],iStats[0], iStats[2],iStats[3],iStats[6],iStats[1])