problem with growing weed!
#1

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?^^

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)