Siren won't delete
#1

uh , well I'm using the good ol' sirens added in 0.3.7 and im having a weird problem (which isnt linked to the new sirens).


When I try to destroy the object, it doesn't do it.

pawn Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
    {
        Siren[vehicleid] = CreateObject(19620, 0, 0, 0, 0, 0, 0, 0);
        if(newstate == 1 && !IsACarWithSirenObject(vehicleid))
        {
            AttachObjectToVehicle(Siren[vehicleid], vehicleid, 0.000000, -0.549499, 0.884999, 0.000000, 0.000000, 0.000000);
        }
        if(newstate == 0 && !IsACarWithSirenObject(vehicleid))
        {
            DestroyObject(Siren[vehicleid]);
        }
    }
Reply


Messages In This Thread
Siren won't delete - by sammp - 09.05.2015, 18:59
AW: Siren won't delete - by Mencent - 09.05.2015, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)