Need help .
#1

Hi guys I am making car spawn codes in dialog . I NEED help to making it in short way .

Код:
	if(dialogid == 21212)
    {
  		  if(response)
			{
									    		    						new Float:X,Float:Y,Float:Z;
			GetPlayerPos(playerid, X,Y,Z);
			    		    if(listitem == 0)
			{
                      model = 402
			 CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
 		   else if(listitem == 1)
			{
                      model = 402
			 CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
}
		}
Now guys it's an exaple t code but its only two car in is codes but I ave to make all cars for this I have to add "createvehicle()" in every item IS there any way to make like this .

if(listitem == 0)
{
model = 400
else if(listitem == 1)
{
model = 401
{
.................... Now what to d please help .
Reply


Messages In This Thread
Need help . - by iRana - 21.08.2010, 08:36
Re: Need help . - by willsuckformoney - 21.08.2010, 08:48
Re: Need help . - by iRana - 21.08.2010, 08:56
Re: Need help . - by willsuckformoney - 21.08.2010, 08:59
Re: Need help . - by iRana - 21.08.2010, 09:05
Re: Need help . - by willsuckformoney - 21.08.2010, 09:10
Re: Need help . - by iRana - 21.08.2010, 09:13

Forum Jump:


Users browsing this thread: 4 Guest(s)