Forum Discussion
RokuMarkn
11 years agoVisitor
The way to approach this is to first look at the exact error message. It includes a line number that tells you which statement had the problem. Then look at that line (which will, I am sure, be the first line in the function, the assignment to channelid). Now what dot operator could have failed? Luckily there is only one dot operator in this line, msg.GetIndex(). Now look at the list of variables in the debugger and see what the value of msg is. You will find that it is invalid. Now go back to your code and try to discover why it is invalid. In this case, it is because it is undefined -- you have never mentioned the msg variable before your attempt to use the dot operator on it. Probably you meant to pass it as a function parameter.
--Mark
--Mark