Could anyone help me out im a begginer.

What do i do at this situation? I was watching a tutorial on youtube and it had the same code and everything and it worked but for me it doesnt.


I recommend putting scripting (code) questions in the Scripting sub-forum, but–

It looks like you’ve simply misspelled “length.”

Accidentally capitalized it too.

Oh god that was a really stupid mistake from me and i was looking at the code like 30mins trying to change something to work, and it was so simple…

1 Like

Eh? Pretty sure it’s supposed to be capitalized for C#.

3458590--274233--2018-04-11_14-12-38 Example.png

See line 553. No errors.

You’re right. I must be confusing it with something else (most likely a Unity API that doesn’t capitalize it). :stuck_out_tongue:

https://msdn.microsoft.com/en-us/library/system.array.length(v=vs.110).aspx

1 Like

Not stupid. Pretty sure everybody goes through this when learning to code. It’s the nature of communicating with a computer. You have to be perfectly clear, if you miss a single semi-colon, the computer does not know what to do.

Get used to looking over your code letter by letter to find small mistakes, that’s just the way it is.

Try using Visual Studio’s auto-complete functionality. As soon as you got to Neighbors.L it should have automatically made suggestions for what you want. Get used to if you don’t see any suggestions it means you’ve already typed things wrong. That way you can fix them before you even get to debugging your code.

1 Like

Speaking of Visual Studio did anyone else notice that it didn’t highlight the error in the screenshot?

I’ve had it go all wonky on me before and stop showing IntelliSense stuff. I don’t recall if it stopped showing errors, but I wouldn’t be surprised if that happened.