SA-MP Forums Archive
[Need Help]MoveDynamicObject not work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Need Help]MoveDynamicObject not work (/showthread.php?tid=567905)



[Need Help]MoveDynamicObject not work - edwardluciano - 17.03.2015

i use with button before button 24 MoveDynamicObject Work normally but when button 24 and more it not work

Код:
public OnPlayerPressButton(playerid, buttonid)
{

if(buttonid == 24)
	{
	    if(IsGovofficials(playerid))
		{
			if(RSA_Door[OpenedID1] == 0)
			{
                MoveDynamicObject(RSA_Door[OpenedID1], -1520.2000000,481.5000000,9.0000000, 1.5,0.0000000,0.0000000,359.2470000);
				RSA_Door[OpenedID1] = 1; RSA_Door[TimerID]= SetTimer("RSDoorCheck", 3000, 0);
			}
			else if(RSA_Door[OpenedID1] == 1)
			{
				MoveDynamicObject(RSA_Door[OpenedID1], -1529.1000000,481.7000100,9.0000000, 1.5,0.0000000,0.0000000,359.2480000);
				RSA_Door[OpenedID1] = 0; KillTimer(RSA_Door[TimerID]);
			}
		}
	}
}
I use Incognito's streamer 2.6