Desaster Posted October 25, 2013 Share Posted October 25, 2013 hello, I am trying to make a train script so the script work ok but idk what does this error mean could you help me with that WARNING: train\server.lua:18: Bad 'vehicle' pointer @ 'setTrainSpeed'(1) thnx Link to comment
pa3ck Posted October 25, 2013 Share Posted October 25, 2013 You should post the line which shows the error. Link to comment
Dealman Posted October 25, 2013 Share Posted October 25, 2013 No offence, but are you even trying to understand what it means? It is really obvious. MTA has the nicest debugging I've ever seen, it doesn't get much more foolproof than this. 1) It shows you the line where the error/warning was encountered. In this case, Line 18. (Use a program like Notepad++ to see Line Numbers) 2) It tells you what is wrong. In this case, it expected a vehicle pointer - a vehicle element, but received something else or nothing(nil). Thus, it does not know what to do. See setTrainSpeed for information. 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