Help creating+attaching an object to a vehicle.
#2

im guessing becouse your variable HasMinigun is checking for the condition true when yet is not!
Also clear up other things
pawn Код:
public mChecker()
{
    for(new i=0;i<MAX_VEHICLES;i++)
    {
        if(GetVehicleModel(i) == 470)
        {
            if(HasMinigun[i] == false)
            {
                HasMinigun[i] = true;
                new Float:VehPos[3];
                GetVehiclePos(vehicle, VehPos[0],VehPos[1],VehPos[2]);
                minigun[minicount] = CreateObject(2985, VehPos[0], VehPos[1], VehPos[2], -1.0, 0, 0 , 0.6);
                AttachObjectToVehicle(minigun[minicount], i, 0.74, 3.37, -0.25, 0.00, 0.00, 89.47 );
                minicount++;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Help creating+attaching an object to a vehicle. - by Strier - 12.06.2013, 18:01
Re: Help creating+attaching an object to a vehicle. - by park4bmx - 12.06.2013, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)