19.02.2013, 22:38
Having opening braces after your two if statements might help. Also a closing " in the second one:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pdopen", cmdtext, true) == 0)
{
MoveObject(Gate, 1541.80005, -1636.90002, 12.4, 0, 0, 270, 1);
MoveObject(Gate2, 1542, -1618.69995, 12.4, 0, 0, 270, 1);
return 1;
}
if (strcmp("/pdclose", cmdtext, true) == 0)
{
MoveObject(Gate, 1541.80005, -1631.69995, 12.4, 0, 0, 270, 1);
MoveObject(Gate2, 1542, -1623.80005, 12.4, 0, 0, 268, 1);
return 1;
}
return 0;
}