11.08.2013, 12:31
pawn Код:
printf("range check");
You need an else clause. Learn to use it
pawn Код:
if(dooropen == 0)
{
printf("door open = %d", dooropen);
MoveDynamicObject(chaindoor,321.45309, 310.08768, 998.14099,1.0,0,0,-90);
printf("objectid = %d", chaindoor);
printf("object moved");
dooropen = 1;
printf("door open = %d", dooropen);
} else {
printf("door open = %d", dooropen);
MoveDynamicObject(chaindoor,321.45309, 310.08768, 998.14099,1.0,0,0,360);
dooropen = 0;
}