uhm.. Guys whats wrong at this?? Need a help (im lil. bit confused)
#1

Well, my problem is. I made a dynamic door (/ddnext first then /ddedit exterior) then i tried to move the exterior. and the pickupmodel isn't deleting. I want to solve this problem.

thanks guys




CODE:
pawn Код:
else if(strcmp(choice, "exterior", true) == 0)
    {
        GetPlayerPos(playerid, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]);
        GetPlayerFacingAngle(playerid, DDoorsInfo[doorid][ddExteriorA]);
        DDoorsInfo[doorid][ddExteriorVW] = GetPlayerVirtualWorld(playerid);
        DDoorsInfo[doorid][ddExteriorInt] = GetPlayerInterior(playerid);
        SendClientMessageEx(playerid, COLOR_WHITE, "You have changed the exterior!");
        if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
        if(IsValidDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID])) DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
        //DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
        CreateDynamicDoor(doorid);
        SaveDynamicDoors();
        format(string, sizeof(string), "%s has edited DoorID %d's Exterior.", GetPlayerNameEx(playerid), doorid);
        Log("logs/ddedit.log", string);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)