OnPlayerStateChange statement ain't working
#8

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Wait, is validcar an array of vehicles? If so you should consider making a foreach iterator. Also, honestly I have no idea what the point of this piece of code is supposed to be printing considering what vehicle, his old vehicle or the vehicle he just exited. If your trying to use the one he just exited why are you using LastVehicle as the vehicle being checked?
The validcar variable gets set to true when it's an owned vehicle. So I check if the last vehicle they exit is an owned one, if so, I get the car's last position to save it in my database.
But I'm considering re-do my private vehicle system because the current one is a little bit buggy.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)