Noki Posted August 30, 2015 Share Posted August 30, 2015 I'm having trouble using OOP to get all elements by type. I: srun "player":getAllByType() O: Error: [string ""player":getAllByType()"]:1: unexpected symbol near '"player"' I: srun ("player"):getAllByType() O: Error: [string "return ("player"):getAllByType()"]:1: attempt to call method 'getAllByType' (a nil value) I: srun Player("Noki"):getAllByType() O: Command results: false [boolean] The last one was kind of a last ditch effort as I'm completely clueless. Link to comment
MTA Team botder Posted August 30, 2015 MTA Team Share Posted August 30, 2015 Element.getAllByType("player") Link to comment
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