Raised This Month: $ Target: $400
 0% 

index out of bounds (yea another one) unresolved still


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 02-18-2007 , 12:30   Re: index out of bounds (yea another one) unresolved still
Reply With Quote #7

Code:
new const CLASSES[MAXCLASSES][] = {     "Mutant",     "Alien",     "Predator",     "Machine" }

you are missing the "nothing" class in the array.
Machine id is 4 but in the array the index of it is 3 ( same with the others ).
so if you choose Machine you will get "Run time error 4".

Code:
new const CLASSES[MAXCLASSES][] = {     "Nothing",     "Mutant",     "Alien",     "Predator",     "Machine" }

try this
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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:37.


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