[Help] Really in problem!,Help me figgure this out please!.
#3

line 38:
Код:
	movingdoor1 = CreateObject(986, 1781.181640625, -1534.1064453125, 10.570885658264, 0.0000, 0.0000, 0.0000);
you missed 3 float values - the rotations

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)