29.03.2010, 02:43
line 38:
you missed 3 float values - the rotations
the OnPlayerCommandText() was missing a brace:
Код:
movingdoor1 = CreateObject(986, 1781.181640625, -1534.1064453125, 10.570885658264, 0.0000, 0.0000, 0.0000);
the OnPlayerCommandText() was missing a brace:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/opengate", cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1781.181640625, -1534.1064453125 , 10.570885658264))
{
MoveObject(movingdoor1, 1781.181640625, -1534.1064453125, 10.570885658264, 2);
SendClientMessage(playerid, 0xEF994300, "The jail main gate has Opened.");
}
return 1;
}
if (!strcmp("/Closegate", cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1781.181640625, -1534.1064453125 , 10.570885658264))
{
MoveObject(movingdoor1, 1781.181640625, -1534.1064453125, 10.570885658264, 2);
SendClientMessage(playerid, 0xEF994300, "The Jail gate has Closed.");
}
return 1;
}
return 0;
}

