SA-MP Forums Archive
Why not working? - 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: Why not working? (/showthread.php?tid=463317)



Why not working? - Tuntun - 11.09.2013

Код:
/// GATE SYSTEM BY TUNTUN!

#include <a_samp>
#include <zcmd>

new Gate1;

public OnFilterScriptInit()
{
	Gate1 = CreateObject(968,2423.5000000,-2094.8000488,13.3000002,0.0000000,353.9998779,270.0000000);
	print("\n--------------------------------------");
	print(" Gate system loaded!");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
CMD:closegate(playerid,params[])
{
	MoveObject(Gate1,2423.50000, -2094.80005, 13.30000,2.9);
	return 1;
}
CMD:opengate(playerid,params[])
{
	MoveObject(Gate1,2423.5000000,-2094.8000488,13.3000002,2.9);
	return 1;
}
CMD:gatesystem(playerid,params[])
{
	SetPlayerPos(playerid,2423.5000000,-2094.8000488,13.3000002);
	return 1;
}
Nothing happens in game.


Re: Why not working? - Misiur - 11.09.2013

All coordinates are identical, there's nowhere to move.


Re: Why not working? - Tuntun - 11.09.2013

Any coordinates not working.. check it.