03.04.2011, 18:50
This should work
pawn Код:
#define GATETHINGYIGUESS 1
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case GATETHINGYIGUESS:
{
switch(listitem)
{
case 0:
{
MoveObject(Bridge,262.30819702148,2998.6782226563,10.946338653564, 3.00); // UP
}
case 1:
{
MoveObject(Bridge,262.30819702148,2998.6782226563,-27.553661346436, 3.00); // DOWN
}
case 2:
{
MoveObject(Abg2,250.58392333984,3113.0004882813,15.086917877197,3.00); // OPEN
}
case 3:
{
MoveObject(Abg2,262.33248901367,3113.1955566406,15.086917877197, 3.00); // CLOSE
}
case 4:
{
MoveObject(Runway,84.14793396,3430.49975586,12.99578094,3.00); // OPEN
}
case 5:
{
MoveObject(Runway,84.10546875,3252.544921875,12.995780944824,3.00); // CLOSE
}
}
}
}
return 1;
}