GreenHill Posted May 11, 2020 Posted May 11, 2020 Hello. I'm stupid new in c# and rage mp. I have an problem. How can I import my class from another cs file on client-side? clientside_cs.txt logs speak that it can't find my type or namespace. Sorry for my English.
Division Posted May 11, 2020 Posted May 11, 2020 (edited) "files" should be located in your solution. "classes" can be used via static: Classname.Method(params[]) or via instance of an object: var x = new Classname(constructorParams[]); x.Method(params[]); Make sure that you use the right namespace. But Visual Studio is doing that normally for you when you creating a new "file" Edited May 11, 2020 by Division
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now