Mid function help

I've been making a mutator that lets you PM other players and so far, this little part of the script was giving me hell.
This line is to find a specific player via their ID.
The main problem I'm having is with the line HighlightedPlayer = mid(S, 7);
This is the compile error I'm getting: Error, Type mismatch in '='
I've looked it up on UnrealWiki and it tells me it's a bad operator, so I've tried =, ==, and nothing. Can anyone help me with this?
Thanks, Cozmo.

- Code: Select all
if (mid(S, 0, 6) == "PM ID ")
{
HighlightedPlayer = mid(S, 7);
}
This line is to find a specific player via their ID.
The main problem I'm having is with the line HighlightedPlayer = mid(S, 7);
This is the compile error I'm getting: Error, Type mismatch in '='
I've looked it up on UnrealWiki and it tells me it's a bad operator, so I've tried =, ==, and nothing. Can anyone help me with this?
Thanks, Cozmo.