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

[miscstats.sma] Run time error 4: checkKills (line 607)


  
 
 
Thread Tools Display Modes
Author Message
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 10-28-2006 , 21:20   [miscstats.sma] Run time error 4: checkKills (line 607)
#1

For some reason I keep getting this:
Code:
L 10/28/2006 - 23:57:45: [AMXX] Displaying debug trace (plugin "miscstats.amxx")
L 10/28/2006 - 23:57:45: [AMXX] Run time error 4: index out of bounds 
L 10/28/2006 - 23:57:45: [AMXX]    [0] miscstats.sma::checkKills (line 607)
Server is linux and running 1.76a with CSDM 2.1
I am using the miscstats from the default package, not the one posted in vittu's thread.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
Old 10-28-2006, 22:05
organizedKaoS
This message has been deleted by organizedKaoS. Reason: Bad post :(
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-29-2006 , 09:21   Re: [miscstats.sma] Run time error 4: checkKills (line 607)
#2

Sorry, but your code wouldn't help his error.

His error is because a function is called with a player id that isn't valid.

Your code doesn't change anything.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 10-29-2006 , 11:44   Re: [miscstats.sma] Run time error 4: checkKills (line 607)
#3

Literally, your code doesn't change ANYTHING. Both the before and after is essentially the same.
__________________
Brad is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 10-29-2006 , 23:07   Re: [miscstats.sma] Run time error 4: checkKills (line 607)
#4

Code:
  if (a > -1)
  {
   if (MultiKill)
   {
    new name[32]
    
    get_user_name(id, name, 31)
    set_hudmessage(255, 0, 100, 0.05, 0.50, 2, 0.02, 6.0, 0.01, 0.1, -1)
    
    if (a > 6)
     a = 6
    
    ShowSyncHudMsg(0, g_left_sync, g_MultiKillMsg[a], name, LANG_PLAYER, "WITH", g_multiKills[id][0], LANG_PLAYER, "KILLS", g_multiKills[id][1], LANG_PLAYER, "HS")
   }
   
   if (MultiKillSound)
   {
    new sound[24]
    format(sound, 23, "misc/%s", g_Sounds[a])
    play_sound(sound)
   }
  }
a>6 got err, change to
Code:
  if (a > -1)
  {
    if (a > 6)
     a = 6

   if (MultiKill)
   {
    new name[32]
    
    get_user_name(id, name, 31)
    set_hudmessage(255, 0, 100, 0.05, 0.50, 2, 0.02, 6.0, 0.01, 0.1, -1)
    ShowSyncHudMsg(0, g_left_sync, g_MultiKillMsg[a], name, LANG_PLAYER, "WITH", g_multiKills[id][0], LANG_PLAYER, "KILLS", g_multiKills[id][1], LANG_PLAYER, "HS")
   }
   
   if (MultiKillSound)
   {
    new sound[24]
    format(sound, 23, "misc/%s", g_Sounds[a])
    play_sound(sound)
   }
  }
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
BAILOPAN
Join Date: Jan 2004
Old 10-31-2006 , 14:50   Re: [miscstats.sma] Run time error 4: checkKills (line 607)
#5

Thanks for the report, and thanks for the patch, jopmako. This is committed as revision 3142.

I assume this will now cause "godlike" to be spammed after each kill beyond the sixth. If people find this to be a problem, I can revert the patch and use one that disables consecutive repeats. (File a separate report if you like this idea).
__________________
egg
BAILOPAN is offline
 



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 04:10.


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