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