I ethically borrowed some source code and it doesn't work
I took some source code but when I pasted it, it started blaring errors and I'm not too sure what the errors mean.
10 Replies
It's in Unity
The original function was this:
look at the error messages you are getting
Well, what are the errors?
Im trying to get them but my screenshot program is breaking on me
you can read them yourself, thats fine
Top Level statements must precede
namespace and type declarations
you can't just randomly paste code anywhere in a file and expect it to work
Im guessing you pasted this outside a class
ah shoot I think i did
Yeah that was a dumb mistake It really looked like it was in the class
Ty for the help
Code goes into methods, methods into classes, classes into namespaces
Yeah