01.06.2017, 21:17
Quote:
What if the command the user entered is just of 3 characters, just /fb, then the cmdtext[3] would crash, with an array index out of bounds exception. It's better to use sscanf for these purposes. NEVER TRUST USER INPUT.
|
Quote:
I put the command in another GM and it works however i am forced to put the id car for the destroy and i want for something that would allow me to detroy the vehicle at the same time as i close the crusher. If is possible
Again tanks for your help +1 for you |
Loop through all vehicles and check with GetVehicleDistanceFromPoint if they are near the crusher and delete them