Need help with a loop
#1

I am trying to make a loop that will make and array hold a list of all of the different vehicle ids but for some reason it only stores the ids 400-610 and the loop never ends, i have tried to fix it but i can't see what i am doing wrong. could someone please tell me what the problem is?
here is the code for the loop:
Код:
        new vehids[211];
	new idx=0;
	for(new x=400;x<612;x++)
	{
	    vehids[idx]=x;
	    printf("x val is now %d",x);
	    idx++;
	}
	printf("Loop is done");
Reply


Messages In This Thread
Need help with a loop - by saker277 - 16.11.2011, 13:52
Re: Need help with a loop - by Sinner - 16.11.2011, 13:55
Re: Need help with a loop - by saker277 - 16.11.2011, 13:58
Re: Need help with a loop - by Sinner - 16.11.2011, 13:59
Re: Need help with a loop - by sabretur - 16.11.2011, 14:17

Forum Jump:


Users browsing this thread: 2 Guest(s)