Raised This Month: $12 Target: $400
 3% 

[Statsx.sma] New SVN version mistake.


  
 
 
Thread Tools Display Modes
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
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-19-2007 , 01:18   Re: [Statsx.sma] New SVN version mistake.
#2

Actually, the original if line was more optimal, I had just forgotten to get rid of the iRoundTime variable.

Fixed in revision 3321, thanks.
sawce is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode