I\'m facing a problem right naw. So i\'ll put the code right away;
public static List blockedOpcodes = new List();
public st
Obviously you need
if (Project_name.Program.blockedOpcodes[current.Opcode] != 0)
instead of this:
if (Project_name.Program.blockedOpcodes(current.Opcode))
Because blockedOpcodes
is a list rather then a method.
EDIT: You need to compare your list-value against 0
(or whatever you consider to be an "invalid" value) because you store int-values within the list.
EDIT: To check if a given OpCode is within your list simply call this:
if (blockedOpcodes.Contains(current.Opcode)) { /* ... */ }