[HELP] "Array Index out of bounds"
#7

Quote:
Originally Posted by Joe Staff
View Post
Do you have 165 "CarCoords" initialized?
Here's the code

Code:
forward AddCar(carcoords);


public AddCar(carcoords)
{
	new randcol = random(126);
	new randcol2 = 1;
	if (rccounter == 14)
	{
		rccounter = 0;
	}
	AddStaticVehicleEx(carselect[rccounter], CarSpawns[carcoords][pos_x], CarSpawns[carcoords][pos_y], CarSpawns[carcoords][pos_z], CarSpawns[carcoords][z_angle], randcol, randcol2, 60000);
	rccounter++;
	return 1;
}
Reply


Messages In This Thread
[HELP] "Array Index out of bounds" - by hatcis - 17.11.2018, 05:09
Re: [HELP] "Array Index out of bounds" - by Mencent - 17.11.2018, 05:55
Re: [HELP] "Array Index out of bounds" - by hatcis - 17.11.2018, 15:56
Re: [HELP] "Array Index out of bounds" - by Joe Staff - 17.11.2018, 16:53
Re: [HELP] "Array Index out of bounds" - by kingmk - 17.11.2018, 21:43
Re: [HELP] "Array Index out of bounds" - by hatcis - 18.11.2018, 02:29
Re: [HELP] "Array Index out of bounds" - by hatcis - 18.11.2018, 02:31
Re: [HELP] "Array Index out of bounds" - by Joe Staff - 18.11.2018, 04:00
Re: [HELP] "Array Index out of bounds" - by hatcis - 18.11.2018, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)