Error CS0118

When posting code on the Scripting forum, make sure to use Code Tags so people can read your code easily. You can edit your post and add it.

The error tells you what’s wrong, you used a type like a variable. I don’t even know what you’re trying to do, so I can’t help you unless you explain it.

On another note, I’d suggest following some basic coding tutorials instead, C# has strict rules on how the syntax works, and if you don’t know those you’re not going to get anywhere.

2 Likes