09.07.2013, 18:05
Hi for all.
First of all let me introduce myself: I am Darkmirages, I love sa-mp and everything that is part of this fantastic multiplayer
RandomDerby Float Function:
RandomDerbyCar Float Function:
Where I'm wrong? what is or what are my mistakes? I hope that you know how to solve them ...
Thanks for reading
First of all let me introduce myself: I am Darkmirages, I love sa-mp and everything that is part of this fantastic multiplayer
I would try to make a /derby with spawn different and the same is true for the machines, now I give you the codes:
Derby CMD:Код:
if (strcmp("/derby", cmdtext, true, 10) == 0) { Derby = true; // it is only a bool that says the player is in derby or not new vehicle1234; new randDD = random(sizeof(RandomDerby)); new randDDC = random(sizeof(RandomDerbyCar)); vehicle1234=CreateVehicle(RandomDerbyCar[randDDC],RandomDerby[randDD],3,3); SetVehicleNumberPlate(vehicle1234,"R.S. Derby"); PutPlayerInVehicle(playerid,vehicle1234,0); return 1; }
Код:
new Float:RandomDerby[][] = { "2897.8269,529.6500,2.5237", "2889.0015,488.2032,2.2507", "2987.7334,430.6239,10.5206", "3032.1719,430.1425,21.0622", "2991.8635,429.5412,38.8972" };
Код:
new Float:RandomDerbyCar[][] = { "411","400","573","549","451", "541","542","545","556","559" };
Thanks for reading