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

Quote:
Originally Posted by Mencent
View Post
Hello!

Can you show us your "new" of carselect, please?
Here's the code sir..

Code:
new carselect[15];
Code:
public OnGameModeInit()
......
......
new randa = random(sizeof(RandCars));
	randa = random(sizeof(RandCars));carselect[0] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[1] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[2] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[3] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[4] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[5] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[6] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[7] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[8] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[9] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[10] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[11] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[12] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[13] = RandCars[randa][0];
	randa = random(sizeof(RandLCars));carselect[14] = RandLCars[randa][0];
	AddStaticVehicleEx(carselect[14], 1279.4,-1337.0,13.5,1.0,-1, -1, -1);//long
........
........
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)