29.01.2011, 16:00
Well your code doesn't make any sense, you're moving "lspdgate1" variable, which contains either 1 or 0 by the looks of it, and not the actual object ID of the gate, so the script is moving object ID 1 or 0 depending on what state it's in. You need to store the ID of the object, and move that, for example:
Then in the command you would use that as the objectID
Hope that example helps you.
pawn Код:
new gate1ID = CreateObject(blabla);
pawn Код:
MoveObject(gate1ID,......);