Posts: 426
Threads: 46
Joined: Apr 2011
Quote:
Originally Posted by RollTi
Actually i don't see the difference here
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; }
i mean
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
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
pawn Код:
MoveObject(celldoor1, 14856,312.50000000,320.79998779,1000.00000000+5, 1.0);
because you said that when you open the door the object was deleted
|
No Shit, it ain't D:
... =/ Let me see what i can do