Array index out of bounds -- HELP PLS
#2

Code:
new RobCps[MAX_PLAYERS];
and this is the code on starting robbery , set the player checkpoint:
Code:
		new rand = random(sizeof(robberycheckpoints));
		RobCps[playerid] = CreateDynamicCP(robberycheckpoints[rand][0],robberycheckpoints[rand][1],robberycheckpoints[rand][2],robberycheckpoints[rand][3], -1, -1, playerid, -1);
and this :
Code:
new Float: robberycheckpoints[3][4] =
{
	{-751.9777,-131.2435,65.8281, 3.0 }, // 1
	{-548.4982,-181.6734,78.4063, 3.0 }, // 2
	{-520.1964,-544.4396,25.5234, 3.0 }, // 3
};
Reply


Messages In This Thread
Array index out of bounds -- HELP PLS - by PoniStar - 27.01.2019, 08:57
Re: Array index out of bounds -- HELP PLS - by PoniStar - 27.01.2019, 09:05
Re: Array index out of bounds -- HELP PLS - by Calisthenics - 27.01.2019, 09:12
Re: Array index out of bounds -- HELP PLS - by PoniStar - 27.01.2019, 09:15
Re: Array index out of bounds -- HELP PLS - by GeorgeLimit - 27.01.2019, 09:18
Re: Array index out of bounds -- HELP PLS - by PoniStar - 27.01.2019, 09:22
Re: Array index out of bounds -- HELP PLS - by Calisthenics - 27.01.2019, 09:24
Re: Array index out of bounds -- HELP PLS - by PoniStar - 27.01.2019, 09:29
Re: Array index out of bounds -- HELP PLS - by Calisthenics - 27.01.2019, 09:33
Re: Array index out of bounds -- HELP PLS - by PoniStar - 27.01.2019, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)