SetVehicleVirtualWorld wont work??
#1

Hey guys I have a code here that i've been trying to fix for a long time now and i can't figure it out?

Код:
new Float:vehicles[14][4] = {
{388.4015,2537.7161,16.9140,179.3938},
{404.4426,2452.0791,17.4188,0.4300},
{365.7660,2536.3887,16.7421,182.6629},
{325.3318,2536.8289,17.5101,178.4121},
{290.4969,2540.0361,17.2736,178.7922},
{421.6918,2533.8464,16.1341,91.3846},
{-507.3837,2630.3984,52.9713,89.1986},
{-520.2582,2612.5879,53.3101,268.7889},
{-539.8851,2575.5542,53.2462,89.0322},
{-520.8671,2569.4358,53.2054,90.4277},
{-25.7535,2322.8506,23.8180,268.5762},
{-40.9095,2347.0725,23.9208,86.7227},
{-154.4853,2684.8879,62.2158,0.1440},
{-275.7067,2723.8491,62.9846,269.5266}
};

new vehicleids[] = {
556,519,417,476,593,521,521,439,
402,603,481,424,405,455
};
Thats at the top of the script

Код:
OnFilterScriptInit()
{
SpawnVehicles();
}
Код:
public SpawnVehicles()
{
    new veh;
	for(new i=0;i<sizeof(vehicleids);i++)
	{
	  veh = AddStaticVehicle(vehicleids[i],vehicles[i][0],vehicles[i][1],vehicles[i][2],vehicles[i][3],-1,-1);
 	}
 	for(new i=0;i<sizeof(vehicleids);i++)
	{
	  SetVehicleVirtualWorld(veh,1);
 	}
}
The vehicle spawns just fine but it doesn't spawn in VirtualWorld 1? (The default VW is 0 so 1 is dif)
Reply


Messages In This Thread
SetVehicleVirtualWorld wont work?? - by Luciano - 25.07.2009, 00:19
Re: SetVehicleVirtualWorld wont work?? - by abhinavdabral - 25.07.2009, 00:37
Re: SetVehicleVirtualWorld wont work?? - by Luciano - 25.07.2009, 00:39
Re: SetVehicleVirtualWorld wont work?? - by yezizhu - 25.07.2009, 01:01
Re: SetVehicleVirtualWorld wont work?? - by Luciano - 25.07.2009, 01:09
Re: SetVehicleVirtualWorld wont work?? - by yezizhu - 25.07.2009, 01:28

Forum Jump:


Users browsing this thread: 1 Guest(s)