Raised This Month: $ Target: $400
 0% 

Getting error in server console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-29-2010 , 09:25   Re: Getting error in server console
Reply With Quote #1

Index out of bounds error on this: CLASSES[ ZombieClass[id] ]

This means either id is larger than ZombieClass upper-bound or ZombieClass[id] is larger than CLASSES upper-bound. I assume the latter.

Show the definition for both arrays and where they are assigned values.
__________________
Bugsy is offline
Effect
Junior Member
Join Date: May 2010
Old 05-29-2010 , 09:58   Re: Getting error in server console
Reply With Quote #2

This ?:
PHP Code:
#define MAXCLASSES 4

new ZombieClass[33]

new const 
CLASSES[MAXCLASSES][] =
{
    
"Classic",
    
"Electric",
    
"Strong",
    
"Mystic"
}
enum
{
    
Classic 0,
    
Electric,
    
Strong,
    
Mystic

Effect is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-29-2010 , 10:14   Re: Getting error in server console
Reply With Quote #3

Quote:
Originally Posted by Effect View Post
This ?:
PHP Code:
#define MAXCLASSES 4

new ZombieClass[33]

new const 
CLASSES[MAXCLASSES][] =
{
    
"Classic",
    
"Electric",
    
"Strong",
    
"Mystic"
}
enum
{
    
Classic 0,
    
Electric,
    
Strong,
    
Mystic

Quote:
Originally Posted by Bugsy View Post
and where they are assigned values.
Seta00 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 05:23.


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