Array with float and integer ?
#1

Yo , I want to do a random car spawns like that :

Код:
new Float:RandomCarSpawn[][] = 
{
    {427,2239.6694,2441.9373,3.4053,88.4534,0,1},//I know it's the same car , it's for the exemple
    {427,2239.6694,2441.9373,3.4053,88.4534,0,1},
    {427,2239.6694,2441.9373,3.4053,88.4534,0,1}
};
But the modelid and the colors of the cars are not float , How can I do it ? Because I've more than 80 vehicles and I don't want to do this : for 80 cars !

Код:
	                if (result == 0)
			{
   				AddStaticVehicle(470,1678.5349,1790.9318,10.8172,268.2018,43,0); //
			}
			if (result == 1)
			{
   				AddStaticVehicle(485,1669.7319,1564.0251,10.4399,181.8410,1,75); //
			}
			if (result == 2)
			{
                                 AddStaticVehicle(583,1274.0514,1503.6760,10.3606,179.7288,1,1); //
			}
So thanks for the future help
Reply


Messages In This Thread
Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 17:22
Re: Array with float and integer ? - by Lordzy - 03.01.2015, 17:27
AW: Array with float and integer ? - by CutX - 03.01.2015, 17:32
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 17:44
Re: Array with float and integer ? - by dominik523 - 03.01.2015, 17:45
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 17:48
AW: Re: Array with float and integer ? - by CutX - 03.01.2015, 17:53
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 18:05
Re: Array with float and integer ? - by Mauzen - 03.01.2015, 18:19
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)