- Code: Select all
Select Case message.Type.ToString
Case "Moved"
End Select
This amount of code is apparently not permitted. Error thrown:
ServerSideGameCode.SagaMountain.GotMessage(...) uses the non-allowed method: System.Int32 Microsoft.VisualBasic.CompilerServices.Operators::CompareString(System.String,System.String,System.Boolean)
If I comment out the Case line, it all works, but I need that case statement...
I know I can use If/then just as easily, but Select Case makes more sense (For anyone who doesn't know VB, Select Case is the equivalent of "Switch" statements in most languages.)