Quote:
Originally Posted by System64
pawn Код:
switch(IsOpened) { case true: { IsOpened = false; SendClientMessage(playerid,-1,"Gate is closing!"); MoveObject(Gate,969,1504.50000000,-699.70001221); //co-ordinates of closed gate } case false: { ] IsOpened = true; SendClientMessage(playerid,-1,"Gate is opening!"); MoveObject(Gate,969,1512.00000000,-699.69897461); //co-ordinates of opened gate } }
change to
pawn Код:
if(IsOpened == true) { IsOpened = false; SendClientMessage(playerid,-1,"Gate is closing!"); MoveObject(Gate,969,1504.50000000,-699.70001221); //co-ordinates of closed gate } else { IsOpened = true; SendClientMessage(playerid,-1,"Gate is opening!"); MoveObject(Gate,969,1512.00000000,-699.69897461); //co-ordinates of opened gate }
|
I tried that, but it still doesnt work