if StringCase(SubString(GetEventPlayerChatString(), ( StringLength(VK_V(-2)) + 2 ), StringLength(GetEventPlayerChatString()))-1, false) == StringCase(GetPlayerName(Player(i)), false) then
Binary operators are something (to my knowledge) unavailable in Jass so that error is ridiculous at best.
Can you post the whole code?
return "-votekick"
if StringCase(SubString(GetEventPlayerChatString(),StringLength(VK_V(-2))+2,StringLength(GetEventPlayerChatString())-1), false) == StringCase(GetPlayerName(Player(i)), false) or StringCase(SubString(GetEventPlayerChatString(),StringLength(VK_V(-2))+2 ,StringLength(GetEventPlayerChatString())-1), false) == StringCase(VK_V(i), false) or StringCase(SubString(GetEventPlayerChatString(),StringLength(VK_V(-2))+2, StringLength(GetEventPlayerChatString())-1), false) == StringCase(I2S(GetPlayerId(Player(i))), false) then