05.06.2016, 17:47
Thanks Meller. It works but not when "new policeInfernus[MAX_VEHICLES];" and using various types as policeInfernus[1] and so on. It stores "0" at place of vehicle id in policeInfernus[1].
When i did this > "new policeInfernus;" and store vehicle id in this, it stores the correct vehicle id. But i think it will be a big task to create these seperate variables for each car. Why "new policeInfernus[MAX_VEHICLES];" is not working?
When i did this > "new policeInfernus;" and store vehicle id in this, it stores the correct vehicle id. But i think it will be a big task to create these seperate variables for each car. Why "new policeInfernus[MAX_VEHICLES];" is not working?