[BUG]DestroyObject doesn't work
#1

I tested it again and again.. DestroyObject won't work. I just tested it with the new SA:MP objects. Here's an example:

pawn Код:
if (strcmp(cmd, "/neontest", true) == 0)
        {
            new neon1[MAX_PLAYERS], neon2[MAX_PLAYERS];
            if(UserStats[playerid][Fraktion] == 1)
                {
                    if(status1 == 0)
                        {
                            status1 = 1;
                            neon1[playerid] = CreateObject(18647,0,0,0,0,0,0);
                            neon2[playerid] = CreateObject(18647,0,0,0,0,0,0);
                            AttachObjectToVehicle(neon11[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                            AttachObjectToVehicle(neon1[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                            return 1;
                        }
                    else
                        {
                            DestroyObject(neon1[playerid]);
                            DestroyObject(neon2[playerid]);
                            status1 = 0;
                            return 1;
                        }
                    }
The neon light won't be deleted..
Reply


Messages In This Thread
[BUG]DestroyObject doesn't work - by XCarBOn - 04.12.2010, 18:52
Re: [BUG]DestroyObject doesn't work - by [03]Garsino - 04.12.2010, 19:25
Re: [BUG]DestroyObject doesn't work - by Betamaster - 04.12.2010, 20:13
AW: [BUG]DestroyObject doesn't work - by XCarBOn - 04.12.2010, 20:21
Re: [BUG]DestroyObject doesn't work - by Biesmen - 04.12.2010, 20:30
AW: Re: [BUG]DestroyObject doesn't work - by XCarBOn - 04.12.2010, 22:02
Re: [BUG]DestroyObject doesn't work - by kacper55331 - 04.12.2010, 23:00
AW: Re: [BUG]DestroyObject doesn't work - by XCarBOn - 05.12.2010, 00:07
Re: [BUG]DestroyObject doesn't work - by ReVo_ - 05.12.2010, 08:46

Forum Jump:


Users browsing this thread: 1 Guest(s)