24.04.2012, 04:20
Actually i don't see the difference here
i mean
so the problem is in that line you are not moving the object instead you keeping the object position in the same position
EDIT:
hmmm i saw the difference you have +5 in open door and theres no +5 in closed
Maybe the problem is in this line
because you said that when you open the door the object was deleted
pawn Код:
if(cellopen1==0)
{
SendClientMessage(playerid, COLOR_GREY,"You have OPENED the inner Cell door");
MoveObject(celldoor1, 14856,312.50000000,320.79998779,1000.00000000+5, 1.0);
cellopen1 = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY,"You have CLOSED the inner Cell door");
MoveObject(celldoor1, 14856,312.50000000,320.79998779,1000.00000000, 2.0);
cellopen1 = 0;
}
pawn Код:
MoveObject(celldoor1, 14856,312.50000000,320.79998779,1000.00000000, 2.0); //You have this code inside when player open the door and when player close the door
EDIT:
hmmm i saw the difference you have +5 in open door and theres no +5 in closed
Maybe the problem is in this line
pawn Код:
MoveObject(celldoor1, 14856,312.50000000,320.79998779,1000.00000000+5, 1.0);