Why won't this command work
#1

Frist time i have try something like this i get no errors im just trying to make it so that i do /impound and it will just re spawn the car im towing.

Код:
	if(strcmp(cmd, "/impound", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsATOWTRUCKDRIVER(playerid))
			{
				if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
				{
				    new vid;
				    GetVehicleTrailer(vid);
				    DestroyVehicle(vid);
				 }
			}
		}
		return 1;
	}
Reply
#2

missed a line
pawn Код:
if(strcmp(cmd, "/impound", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsATOWTRUCKDRIVER(playerid))
            {
                if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                {
                    new vid;
                    vid = GetPlayerVehicleID(playerid);
                    GetVehicleTrailer(vid);
                    DestroyVehicle(vid);
                 }
            }
        }
        return 1;
    }
}
Reply
#3

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
missed a line
pawn Код:
if(strcmp(cmd, "/impound", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsATOWTRUCKDRIVER(playerid))
            {
                if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                {
                    new vid;
                    vid = GetPlayerVehicleID(playerid);
                    GetVehicleTrailer(vid);
                    DestroyVehicle(vid);
                 }
            }
        }
        return 1;
    }
}
How did i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)