What do I have to add here? - 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: What do I have to add here? (
/showthread.php?tid=515546)
What do I have to add here? -
Bek_Loking - 26.05.2014
Код:
MoveObject(gate, 980,2107.3999000,1384.5000000,12.5000000,0.0000000,0.0000000,180.0000000,3);
I get warnings, and I don't want warnings, I tried everything, I added time at the back ( the 3 one )
What am I missing here?
Re: What do I have to add here? -
davve95 - 26.05.2014
You are using too long coordinates.
You just need the X, Y, Z and the move speed.
https://sampwiki.blast.hk/wiki/MoveObject
Re: What do I have to add here? -
Bek_Loking - 26.05.2014
Quote:
Originally Posted by davve95
|
What about rotation? If I don't add rotation it will all be messed up
Re: What do I have to add here? -
davve95 - 26.05.2014
I didn't knew if you needed them or I missed it.
Just check the link.
Edit: I saw one more thing:
You shouldn't have the object id you should
have it from that you declare.
Like:
new Object;
Object = CreateObject(id, x, y, z, stream distance);
MoveObject(Object, blababla);
It's explained on the Wiki though
Re: What do I have to add here? -
Bek_Loking - 26.05.2014
Fixed it