10.01.2015, 17:36
It will be the last problem ok ?!
Yo , recently I made a multiple random car system for 80 cars and the problem is the cars can spawn twice and more !
So I read this tutorial : https://sampforum.blast.hk/showthread.php?tid=431671 but it's not like me and I didn't managed to put something to works in my script .
Here is my code :
And the command :
So thanks for the future help
Yo , recently I made a multiple random car system for 80 cars and the problem is the cars can spawn twice and more !
So I read this tutorial : https://sampforum.blast.hk/showthread.php?tid=431671 but it's not like me and I didn't managed to put something to works in my script .
Here is my code :
Код:
new Float:RandomCarSpawn[][] = { {Float:433,904.8502,2437.0942,11.2131,179.4698,Float:43,Float:0}, // //BRcar {Float:470,1678.5349,1790.9318,10.8172,268.2018,Float:43,Float:0}, // {Float:485,1669.7319,1564.0251,10.4399,181.8410,Float:1,Float:75}, // {Float:583,1274.0514,1503.6760,10.3606,179.7288,Float:1,Float:1}, // {Float:427,2239.6694,2441.9373,3.4053,88.4534,Float:0,Float:1}, // {Float:459,2534.7878,2021.3383,10.8624,89.9477,Float:57,Float:57}, // {Float:455,2519.4521,1522.7537,11.1827,265.1364,Float:1,Float:31}, // {Float:486,2310.5073,1796.5864,11.0399,177.8302,Float:1,Float:1}, // {Float:498,2145.7410,1408.7954,10.8867,179.4945,Float:37,Float:107}, // {Float:409,2039.2882,1007.8277,10.4719,179.9600,Float:1,Float:1}, // And some 80 others cars }
Код:
for(new i; i<60; i++) { new x = random(sizeof(RandomCarSpawn)); AddStaticVehicle(_:RandomCarSpawn[x][0], RandomCarSpawn[x][1], RandomCarSpawn[x][2], RandomCarSpawn[x][3], RandomCarSpawn[x][4], _:RandomCarSpawn[x][5], _:RandomCarSpawn[x][6]); }