05.12.2011, 21:03
This is what i have:
CMD:gate(playerid, params[])
{
{
if(GateState == 1) //if gate is open
{
GateState = 0; // Gate=Dicht
MoveObject(Gate1,1.2000000476837, -268, 6.1999998092651, 3.0); //
MoveObject(Gate2,-6.6999998092651, -268, 6.1999998092651, 3.0); //
MoveObject(Gate3,-75.800003051758, -348.89999389648, 0.89999997615814, 3.0); //
MoveObject(Gate4,-75.800003051758, -356.79998779297, 0.89999997615814, 3.0); //
}
else
{
GateState = 1; //Gate = Open
MoveObject(Gate4, -75.800003051758, -364.5, 0.89999997615814,3.0);
MoveObject(Gate3, -75.800003051758, -341.39999389648, 0.89999997615814,3.0);
MoveObject(Gate2, -13.10000038147, -268, 6.1999998092651, 3.0);
MoveObject(Gate1, 8.3000001907349, -268, 6.1999998092651, 3.0);
}
}
return 1;
}
Gate 1 and 2 are fine.. but 3 and 4 are bugged
When i restart svr they look good..
But when i do /gate they turn 90 graces.. and when i redo /gate to close they still stay turned and they don't close good. I tried everything and now this is my last chance. may someone see the mistake?
Greetz
CMD:gate(playerid, params[])
{
{
if(GateState == 1) //if gate is open
{
GateState = 0; // Gate=Dicht
MoveObject(Gate1,1.2000000476837, -268, 6.1999998092651, 3.0); //
MoveObject(Gate2,-6.6999998092651, -268, 6.1999998092651, 3.0); //
MoveObject(Gate3,-75.800003051758, -348.89999389648, 0.89999997615814, 3.0); //
MoveObject(Gate4,-75.800003051758, -356.79998779297, 0.89999997615814, 3.0); //
}
else
{
GateState = 1; //Gate = Open
MoveObject(Gate4, -75.800003051758, -364.5, 0.89999997615814,3.0);
MoveObject(Gate3, -75.800003051758, -341.39999389648, 0.89999997615814,3.0);
MoveObject(Gate2, -13.10000038147, -268, 6.1999998092651, 3.0);
MoveObject(Gate1, 8.3000001907349, -268, 6.1999998092651, 3.0);
}
}
return 1;
}
Gate 1 and 2 are fine.. but 3 and 4 are bugged
When i restart svr they look good..
But when i do /gate they turn 90 graces.. and when i redo /gate to close they still stay turned and they don't close good. I tried everything and now this is my last chance. may someone see the mistake?
Greetz