String loop in dialog
#4

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.
Reply


Messages In This Thread
String loop in dialog - by DarkPower - 26.11.2012, 19:39
Re: String loop in dialog - by you10 - 26.11.2012, 19:41
Re: String loop in dialog - by DarkPower - 26.11.2012, 19:45
Re: String loop in dialog - by AndreT - 26.11.2012, 19:46
Re: String loop in dialog - by DarkPower - 26.11.2012, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)