Vehicle doesn't spawn
#5

Код:
        else if(CreatedCars[iIterator] == INVALID_VEHICLE_ID) { 

            new 
                Float: fVehPos[4]; 
            //new iVehicle[MAX_PLAYERS]; 
            print("1"); 
            new fVW = GetPlayerVirtualWorld(playerid); 
            GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]); 
            GetPlayerFacingAngle(playerid, fVehPos[3]); 
            CreatedCars[iIterator] = CreateVehicle(iVehicle, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], iColors[0], iColors[1], -1); 
            print("2"); 
            VehicleFuel[CreatedCars[iIterator]] = 100.0; 
            Vehicle_ResetData(CreatedCars[iIterator]); 
            print("3"); 
            LinkVehicleToInterior(CreatedCars[iIterator], GetPlayerInterior(playerid)); 
            print("4"); 
            SetVehicleVirtualWorld(CreatedCars[iIterator], fVW); 
            return SendClientMessage(playerid, 0xFF0000FF, "Admin vehicle spawned");  //Here
        }
may i ask you why you are using return ?
Reply


Messages In This Thread
Vehicle doesn't spawn - by IndependentGaming - 21.02.2018, 19:55
Re: Vehicle doesn't spawn - by Kaperstone - 21.02.2018, 20:13
Re: Vehicle doesn't spawn - by IndependentGaming - 21.02.2018, 20:16
Re: Vehicle doesn't spawn - by IndependentGaming - 22.02.2018, 00:21
Re: Vehicle doesn't spawn - by AstroPoid - 22.02.2018, 00:26
Re: Vehicle doesn't spawn - by AstroPoid - 22.02.2018, 00:31
Re: Vehicle doesn't spawn - by NaS - 22.02.2018, 00:42
Re: Vehicle doesn't spawn - by Mugala - 22.02.2018, 11:52
Re: Vehicle doesn't spawn - by IndependentGaming - 22.02.2018, 13:29
Re: Vehicle doesn't spawn - by IndependentGaming - 22.02.2018, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)