A Little Help for coding my command /derby
#1

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

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;
        }
RandomDerby Float Function:
Код:
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"
};
RandomDerbyCar Float Function:
Код:
new Float:RandomDerbyCar[][] =
{
	"411","400","573","549","451",
	"541","542","545","556","559"
};
Where I'm wrong? what is or what are my mistakes? I hope that you know how to solve them ...

Thanks for reading
Reply


Messages In This Thread
A Little Help for coding my command /derby - by Darkmirages - 09.07.2013, 18:05
Re: A help for coding the variable random - by SwisherSweet - 09.07.2013, 18:12
Re: A Little Help for coding my command /derby - by Champ - 09.07.2013, 20:38
Re: A Little Help for coding my command /derby - by CAR - 09.07.2013, 20:42
Re: A Little Help for coding my command /derby - by Scenario - 09.07.2013, 21:01
Re: A Little Help for coding my command /derby - by Darkmirages - 10.07.2013, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)