[BUG]DestroyObject doesn't work
#8

Quote:
Originally Posted by kacper55331
Посмотреть сообщение
pawn Код:
if (strcmp(cmd, "/neontest", true) == 0)
{
    if(UserStats[playerid][Fraktion] == 1)
    {
        if(!GetPVarInt(playerid, "Status"))
        {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neo1", CreateObject(18647,0,0,0,0,0,0));
            SetPVarInt(playerid, "neo2", CreateObject(18647,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neo1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neo2"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
        }
        else
        {
            DestroyObject(GetPVarInt(playerid, "neo1"));
            DestroyObject(GetPVarInt(playerid, "neo2"));
            DeletePVar(playerid, "Status");
        }
    }
    return 1;
}
Try this.
Thanks! Thanks very much! Works fine.
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)