26.11.2012, 19:46
Sort of makes sense that it does not work. What you're doing is starting the loop with model at value 508, then you increment it until it is smaller than 471. But guess what, that can't work.
What you need to do is figure out what the loop should look like, and from the small snippet you posted, you should probably loop from 0 to sizeof(VehicleNames), that will cover all vehicle names. To get the ID of the vehicle, you then have to add 400 to it.
Also, don't use format for strings as large as this, try strcat instead.
What you need to do is figure out what the loop should look like, and from the small snippet you posted, you should probably loop from 0 to sizeof(VehicleNames), that will cover all vehicle names. To get the ID of the vehicle, you then have to add 400 to it.
Also, don't use format for strings as large as this, try strcat instead.