DestroyObject doesn't work when attached to vehicle?
#1

Hi all,

I think i found a bug.
I have tried to destroy an attachedvehicle object but it doesn't work.
Example:
pawn Код:
if(!strcmp(cmdtext, "/test", true))
    {  
        new objectid;
        new vehicleid;
        vehicleid=GetPlayerVehicleID(playerid);
        if(Variable == 0)
        {
            AttachObjectToVehicle(objectid,vehicleid, -0.034999, 1.749998, 0.329999, 0.000000, 0.000000, 0.000000); //Object Model: 18646 |
            Variable = 1;
            return 1;
        }
        else if(Variable == 1)
        {
            DestroyObject(objectid);
            Variable = 0;
            return 1;
        }
        return 1;
    }
Is this a bug or my code is wrong?

Admigo
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)