Raised This Month: $ Target: $400
 0% 

eW| Index Out of Bounds...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iBrazilian
Senior Member
Join Date: May 2011
Old 06-14-2012 , 16:09   eW| Index Out of Bounds...
Reply With Quote #1

I'm not sure how to fix this problem here..

Both files has been uploaded below.

Thank you for the help in advance.


PHP Code:
L 06/14/2012 14:00:21: [AMXXDisplaying debug trace (plugin "pokemod.amxx")
L 06/14/2012 14:00:21: [AMXXRun time error 4index out of bounds 
L 06
/14/2012 14:00:21: [AMXX]    [0checks.inc::ValidPC (line 439)
L 06/14/2012 14:00:21: [AMXX]    [1registers.inc::EventRoundEnd (line 458
Attached Files
File Type: inc registers.inc (37.1 KB, 64 views)
File Type: inc checks.inc (14.7 KB, 58 views)
__________________
Pokemod Season 5 [ |||||||||| Complete]

Last edited by iBrazilian; 06-14-2012 at 16:18.
iBrazilian is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2012 , 16:12   Re: eW| Index Out of Bounds...
Reply With Quote #2

Show the file that declares the PCent[] variable.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-14-2012 , 16:12   Re: eW| Index Out of Bounds...
Reply With Quote #3

Where is MAX_OAKS define ?
Where is PCent declaration ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-14-2012 , 16:17   Re: eW| Index Out of Bounds...
Reply With Quote #4

For reference:
Quote:
1:14 PM - Εmp`: what is MAX_OAKS set to?
1:14 PM - [email protected]: 0
1:14 PM - Εmp`: look at lines 457-458 in registers
1:15 PM - Εmp`: you could either remove those lines
1:15 PM - Εmp`: or in checks function ValidPC, check if num < MAX_OAKS

Last edited by Emp`; 06-14-2012 at 16:18.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
iBrazilian
Senior Member
Join Date: May 2011
Old 06-14-2012 , 16:18   Re: eW| Index Out of Bounds...
Reply With Quote #5

I see, thank you for looking at them & removed them instead of the checks as I won't ever have any use for them.
__________________
Pokemod Season 5 [ |||||||||| Complete]

Last edited by iBrazilian; 06-14-2012 at 16:19.
iBrazilian is offline
Reply



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 06:17.


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