script cannot convert int?

Status
Not open for further replies.

V1ck

New member
Joined
Feb 13, 2021
Messages
1
Programming Experience
Beginner
r
Y9TQIVIE2UKT.png
6DGWGB8INCXV.png
R705MZ6VGVGT.png
PQUO7ZOWBFVT.png
Simple script i don't get the problem
 

C# is not a scripting language by the way, it is called code. Scripts are interpreted, while C# code is compiled.

Post code whenever you can rather than images:
insertcode.png
 
In the future please post code in code tags, not as screenshots. Also post your errors as text in code tags as well.

In C# equality checks are done using the == comparison operator, and it will return a bool. The problem is that you are using the = assignment operator which returns the type of the assignment.
 
Closing - This isn't a guessing forum. Either you put the effort into asking a question and post your code within code tags and not as screenshots of your code or please don't post at all.

Taking every account into consideration here including the fact you are new to the forum, but you are surely not stupid either. A little common sense when posting on the forums will result in a well written question remaining open.

Reasons for closing :
  • We can't copy text from screenshots
  • We won't rewrite your code from screenshots
  • You neglected to ask a question
  • You neglected to explain your issue
  • Post contains no question
  • No effort put into the opening topic
If you expect courteous replies, please take the time to ask a courteous question and explain your issue elaborately in order for us to best assist you. How To Ask Questions The Smart Way
 
Status
Not open for further replies.

Latest posts

Back
Top Bottom