SA-MP Forums Archive
Some Bug?!? - 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: Some Bug?!? (/showthread.php?tid=386651)



Some Bug?!? - KP2 - 21.10.2012

Hey Guys,
I mapped some things and added gates and stuff...But the prob is gates dont work... They open and close alright but when you open them they turn a 180* Angle and stay like that even after closing... They lose there original place ?
They work fine on my test server...But not on my friend's server host... And i have tryied that on someone's computer with teamviewer that ALSO has the same prob! Am i missing something?


Re: Some Bug?!? - XtremeR - 21.10.2012

thats coz, u dont make it go back, use MoveObject and give the cords of the original position and it will come back..


Re: Some Bug?!? - KP2 - 21.10.2012

Codes:
Код:
new Airport_gate;
Airport_gate = CreateObject(980, 2891.00000000, -307.00000000, 16.60000038, 0.00000000, 0.00000000, 104.99996948);
	return 1;
	}
CMD:openair(playerid, params[])
{
	MoveObject(Airport_gate, 2891.00000000, -307.00000000, 11.10000038, 3.5);
	SendClientMessage(playerid, COLOR_YELLOW, "Gate Opened!");
	return 1;
}
CMD:closeair(playerid, params[])
{
	MoveObject(Airport_gate, 2891.00000000, -307.00000000, 16.60000038, 3.5);
	SendClientMessage(playerid, COLOR_YELLOW, "Gate Closed!");
	return 1;
}



Re: Some Bug?!? - MP2 - 21.10.2012

You're likely using outdated plugins (pre-0.3d) either in your server includes or your streamer. Object rotation was added to MoveObject in 0.3d and if you compile with old includes the rotation will be reset to 0, 0, 0.


Re: Some Bug?!? - KP2 - 21.10.2012

No i have SScanf 2.6 and Streamer 2.5.2


Re: Some Bug?!? - MP2 - 21.10.2012

You need to update the streamer then. 2.6 is the latest.

(+ how is sscanf relevant..?).