SA-MP Forums Archive
problem with growing weed! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with growing weed! (/showthread.php?tid=102831)



problem with growing weed! - BMGP - 17.10.2009

I made a weed system.
First weed spawn under you and then it should grow(-> MoveObject)

Код:
	if(!strcmp(cmd, "/weed", true))
	{
		new weedobject;
		new Float:XWeed, Float:YWeed, Float:ZWeed;
		GetPlayerPos(playerid,XWeed,YWeed,ZWeed);
		weedobject = CreateObject(823, XWeed, YWeed, ZWeed - 2, 0, 0, 0);
		MoveObject(weedobject, XWeed, YWeed, ZWeed , 2);
		return 1;
	}
but it only create weed but doesnt move..

someone know whats wrong?^^




Re: problem with growing weed! - Jefff - 17.10.2009

example
Код:
MoveObject(weedobject, XWeed, YWeed, ZWeed+10 , 2);