AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   eW| Index Out of Bounds... (https://forums.alliedmods.net/showthread.php?t=187553)

iBrazilian 06-14-2012 16:09

eW| Index Out of Bounds...
 
2 Attachment(s)
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


Exolent[jNr] 06-14-2012 16:12

Re: eW| Index Out of Bounds...
 
Show the file that declares the PCent[] variable.

ConnorMcLeod 06-14-2012 16:12

Re: eW| Index Out of Bounds...
 
Where is MAX_OAKS define ?
Where is PCent declaration ?

Emp` 06-14-2012 16:17

Re: eW| Index Out of Bounds...
 
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

iBrazilian 06-14-2012 16:18

Re: eW| Index Out of Bounds...
 
I see, thank you for looking at them & removed them instead of the checks as I won't ever have any use for them.


All times are GMT -4. The time now is 06:17.

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