SA-MP Forums Archive
[Need Help] Car spawns twice - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Need Help] Car spawns twice (/showthread.php?tid=129673)



[Need Help] Car spawns twice - geerdinho8 - 23.02.2010

FIXED


Re: [Need Help] Car spawns twice - geerdinho8 - 23.02.2010

Please Help!


Re: [Need Help] Car spawns twice - [WSM]Deadly_Evil - 23.02.2010

Add in UP:
pawn Код:
//Amount of Vehicles!
#define maxvehicles 899
Add this to your GameModeInit If it is a FS then add in FilterScriptInit!
pawn Код:
for(new v=0; v<maxvehicles; v++){



Re: [Need Help] Car spawns twice - geerdinho8 - 23.02.2010

No does not work :S


Re: [Need Help] Car spawns twice - xxmitsu - 23.02.2010

Have you checked if coordonates
Код:
	CreateVehicle(596,1546.0244,-1697.8789,13.2669,90.0000,53,1,VEHICLE_RESPAWN); // Copcar
	CreateVehicle(596,1545.9713,-1653.2279,13.2792,90.0000,53,1,VEHICLE_RESPAWN); // Copcar
	CreateVehicle(596,1537.3641,-1677.8995,13.1816,180.0000,53,1,VEHICLE_RESPAWN); // Copcar
	CreateVehicle(596,1537.3370,-1667.7383,13.1832,180.0000,53,1,VEHICLE_RESPAWN); // Copcar
	CreateVehicle(596,1528.6390,-1688.0862,5.6109,270.0000,53,1,VEHICLE_RESPAWN); // Copcar
	CreateVehicle(596,1563.1328,-1710.2125,5.6111,360.0000,53,1,VEHICLE_RESPAWN); // Copcar
........
........
Doesn't overlap with any of...
Код:
new Float:RandomVehicles[265][4] = {
{2299.070068,1538.322998,10.502697,90.656600},
{2372.468994,1416.701660,10.490013,180.656341},
{2609.793212,1432.843750,10.566087,178.556777},
{2460.918457,921.915771,10.566639,269.929199},
{1552.790527,1025.020629,10.564740,89.558700},
{1354.948730,1158.980346,10.566164,359.741058},
{1092.275878,1218.602172,10.566159,87.857482},
{1173.750732,1367.011840,10.563897,270.341918},

....
....
....
LATER: I've tried to use your code in a filterscript and all seemed fine to me.. I haven't seen any car spawned twice..



Re: [Need Help] Car spawns twice - geerdinho8 - 23.02.2010

I delted all createvehicles but it still does not work :S


Re: [Need Help] Car spawns twice - geerdinho8 - 23.02.2010

FIXED


Re: [Need Help] Car spawns twice - xxmitsu - 23.02.2010

I'm just curious.. what was the problem ?