MoveObject not working
#1

Why is this not working...
Код:
CMD:fdgate(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 3, 1726.1078,-1146.2034,23.9669) && IsPlayerInRangeOfPoint(playerid, 3, 1725.9445,-1138.0615,24.0859))
	{
	    MoveObject(fdgate1, 1743.175659, -1142.656860, 27.448501, 5, 0.000000, 73.499992, 89.600021);
	}
	if(IsPlayerInRangeOfPoint(playerid, 3, 1733.2117,-1145.8276,23.9781) && IsPlayerInRangeOfPoint(playerid, 3, 1733.3407,-1138.6096,24.0859))
	{
	    MoveDynamicObject(fdgate2, 1726.055664, -1142.450927, 27.504444, 5, 0.000000, 75.799987, 89.600021);
	}
	if(IsPlayerInRangeOfPoint(playerid, 3, 1743.1567,-1145.3771,23.9933) && IsPlayerInRangeOfPoint(playerid, 3, 1743.2159,-1138.8098,24.0859))
	{
	    MoveDynamicObject(fdgate3, 1733.276733, -1142.397338, 27.523857, 5, 0.000000, 71.599983, 89.600021);
	}
	return 1;
}


SOLVED.. I was using " && " instead of " || "
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)