You can’t use = in a comparison, you have to use == instead.
Also, I’m pretty sure GetSelected needs () after it.
Woops, didn’t read the second part. Can’t help with that, sorry.
Thanks for your reply. When I use == it gives me the same error.
What is line 251?
I fixed it.