SA-MP Forums Archive
wrong with pd - 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: wrong with pd (/showthread.php?tid=209354)



wrong with pd - TheKingOfSamp - 10.01.2011

Can i know what's wrong with this ? btw i get a gate in game but i doesnt move...

Код HTML:
lspdgate = CreateObject(971, 1588.5617, -1638.1036, 12.7200, 0, 0, 0); //LSPD 1
Код HTML:
new lspdgate;
Код HTML:
    if(strcmp(cmdtext, "/pd", true) == 0)
	{
		MoveObject(lspdgate, 1588.5617, -1638.1036, 12.7200, 3.5);
                DestroyObject( lspdgate );
	}
thanks


Re: wrong with pd - Lorenc_ - 10.01.2011

Your move object cordinates are the same as the createobject cordinates, that will not move the object and with that your also destroying it.


Re: wrong with pd - iMonk3y - 10.01.2011

it won't move because your coordinates are exactly the same.

pawn Код:
CreateObject( ... 1588.5617, -1638.1036, 12.7200 ... );
MoveObject(  ...  1588.5617, -1638.1036, 12.7200 ... );
you need to specify coordinates, where you want your object to move


Re: wrong with pd - TheKingOfSamp - 10.01.2011

Do you mean that the coordines shouldn't be same as the coordines? , Well then how should i make the moveobject
coordines?


Re: wrong with pd - alpha500delta - 10.01.2011

Lol put x+5 or x-5


Re: wrong with pd - TheKingOfSamp - 10.01.2011

Dude can you explain it well ?, What do you mean ' add -5 or 5 ' i dont get it.