View Single Post
Author Message
KylixMynxAltoLAG
Senior Member
Join Date: Dec 2005
Location: República Argentina.
Old 02-16-2007 , 16:24   [Statsx.sma] New SVN version mistake.
#1

Hi, I have downloaded the last revision of the statsx.sma from the svn and while I compile it found a little mistake:

This is the part of the code:
Code:
 
...
// Round start
public eventStartRound()
{
 new iTeam, id, i
 new iRoundTime
 iRoundTime = read_data(1)
 
 if (read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor))
 {
#if defined STATSX_DEBUG
  log_amx("Reset round stats")
#endif
...
so the var iRoundTime get never used, when it should be:
Code:
 
...
// Round start
public eventStartRound()
{
 new iTeam, id, i
 new iRoundTime
 iRoundTime = read_data(1)
 
 if (iRoundTime == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor))
 {
#if defined STATSX_DEBUG
  log_amx("Reset round stats")
#endif
...
Hope this Helps
Atte. Kylix Mynx AltoLAG
__________________
Ayuda Requerida/Help Needed:
(This will enable MultiLingual support for Times & Dates)
KylixMynxAltoLAG is offline