heroes9898 Posted June 3, 2014 Posted June 3, 2014 i set the vehicles engine state to false (turned off) and turn on the lights. But when I disconnect and connect again to the server, I see that the engine is running and lights are off. Why? and how can I solve it? Don´t let your fears stand in the way of your dreams!
heroes9898 Posted June 3, 2014 Author Posted June 3, 2014 the code is working. On the joining into game, there is no code to change the settings of the vehicle. Don´t let your fears stand in the way of your dreams!
Atton Posted June 3, 2014 Posted June 3, 2014 Most likely an MTA bug. Nikola Tesla is love Nikola Tesla is light. Email: [email protected]
heroes9898 Posted June 3, 2014 Author Posted June 3, 2014 shit Don´t let your fears stand in the way of your dreams!
heroes9898 Posted June 3, 2014 Author Posted June 3, 2014 yess. And I can't see the lights on, when the other player turns that on. Only he can see them. Don´t let your fears stand in the way of your dreams!
Mr_Moose Posted June 3, 2014 Posted June 3, 2014 Did you tried to exit the car before reconnecting? According to the wiki the engine will turn on by default when someone enter the vehicle, if you're in the vehicle when you disconnect you'll be in it as soon you join next time, causing the engine to start again. setVehicleEngineState, could be another reason as well. MTA Community | GitHub | 99Stack Forum
heroes9898 Posted June 3, 2014 Author Posted June 3, 2014 yes. the server-side code solved the all problems thanks. Did you tried to exit the car before reconnecting? According to the wiki the engine will turn on by default when someone enter the vehicle, if you're in the vehicle when you disconnect you'll be in it as soon you join next time, causing the engine to start again. setVehicleEngineState, could be another reason as well. -yes I tried everything. even I slap the computer case Serverside coding solved Don´t let your fears stand in the way of your dreams!
Atton Posted June 4, 2014 Posted June 4, 2014 yes. the server-side code solved the all problems thanks.Did you tried to exit the car before reconnecting? According to the wiki the engine will turn on by default when someone enter the vehicle, if you're in the vehicle when you disconnect you'll be in it as soon you join next time, causing the engine to start again. setVehicleEngineState, could be another reason as well. -yes I tried everything. even I slap the computer case Serverside coding solved It might be worth remember that client code functions on server code functions on the server. This might be oblivious for some but for newer coders it is not. Nikola Tesla is love Nikola Tesla is light. Email: [email protected]
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