Raised This Month: $32 Target: $400
 8% 

[MISCSTATS] CSX CS Version Runtime Error


  
 
 
Thread Tools Display Modes
Author Message
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 10-28-2004 , 14:29   [MISCSTATS] CSX CS Version Runtime Error
#1

I'm using the lastest miscstats plugin from the CVS with AMXX Build 10/25.

L 10/28/2004 - 05:06:01: [AMXX] Run time error 4 (index out of bounds) on line 256 (file "C:\Documents and Settings\Brad.ADMIN-WINXP\Desktop\scripting\miscstats.sma").
L 10/28/2004 - 05:06:52: [AMXX] Run time error 4 (index out of bounds) on line 256 (file "C:\Documents and Settings\Brad.ADMIN-WINXP\Desktop\scripting\miscstats.sma").

Here's Line 256:

Code:
get_players(ppl,pplnum,"e", g_teamsNames[1 - team] )


Here's the whole Function:

Code:
if ( EnemyRemaining ) {     new ppl[32], pplnum     new team = get_user_team( victim ) - 1     get_players(ppl,pplnum,"e", g_teamsNames[1 - team] )     if (pplnum) {       new eppl[32], epplnum       get_players(eppl,epplnum,"ae",g_teamsNames[team])       if (epplnum) {         new message[128],team_name[32]         set_hudmessage(255,255,255,0.02,0.85,2, 0.05, 0.1, 0.02, 3.0, 3)         for(new a=0; a<pplnum; ++a){            format(team_name,31,"%L",ppl[a],(epplnum==1)?g_teamsNames[team]:g_teamsNames[team+2])            format(message,127,"%L",ppl[a],"REMAINING",epplnum,team_name)            show_hudmessage(ppl[a],message)
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 10-28-2004 , 14:30  
#2

Would this be a solution:

Change from:

Code:
get_players(ppl,pplnum,"e", g_teamsNames[1 - team] )

To:

Code:
get_players(ppl,pplnum,"e", g_teamsNames[1 - team])
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 10-28-2004 , 14:35  
#3

Another Runtime error:

L 10/28/2004 - 07:27:05: [AMXX] Run time error 10 (native) on line 389 (file "C:\Documents and Settings\Brad.ADMIN-WINXP\Desktop\scripting\miscstats.sma").
L 10/28/2004 - 07:27:05: [CSX] Invalid weapon id 0

Code:
xmod_get_wpnname(wpnid,wpnname,31)
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
BAILOPAN
Join Date: Jan 2004
Old 10-28-2004 , 22:15  
#4

these should be fixed
__________________
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 00:26.


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