SA-MP Forums Archive
I think it's streamer bug - 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: I think it's streamer bug (/showthread.php?tid=317176)



I think it's streamer bug - Join7 - 10.02.2012

I think it's streamer bug. When I open and close the gate, it changes her rotation.
I use the latest version of the streamer
sorry for my bad english.

Код:
new gate1;
// ongamemodeinit
gate1 = CreateDynamicObject(13187, -547.7978, -183.3261, 78.6962, 0.0000, 0.0000, 90.0000);
//onplayercommandtext
if(strcmp(cmdtext,"/gate1open",true)==0)
{
 MoveDynamicObject(gate1, -547.7980, -183.3271, 76.0062, 5.00);
 SendClientMessage(playerid, 0xffff00ff, "Gate is opened!");
 return 1;
}
if(strcmp(cmdtext,"/gate1closed",true)==0)
{
 MoveDynamicObject(gate, -547.7978, -183.3261, 78.6962, 5.00);
 SendClientMessage(playerid, 0xffff00ff, "Gate is closed!");
 return 1;
}



Re: I think it's streamer bug - AndreT - 10.02.2012

Pass -1000.0 as three last parameters, like:
pawn Код:
MoveDynamicObject(gate1, -547.7980, -183.3271, 76.0062, 5.00, -1000.0, -1000.0, -1000.0);
// and
MoveDynamicObject(gate, -547.7978, -183.3261, 78.6962, 5.00, -1000.0, -1000.0, -1000.0);
Let me know if it helps.

Oh wait, which plugin version are you using?


Re: I think it's streamer bug - Join7 - 10.02.2012

latest version


Re: I think it's streamer bug - Killer#Mummy - 10.02.2012

I have same streamer with latest version and my moving objects also change their rotation.


Re: I think it's streamer bug - Join7 - 10.02.2012

Quote:
Originally Posted by AndreT
Посмотреть сообщение
Pass -1000.0 as three last parameters, like:
pawn Код:
MoveDynamicObject(gate1, -547.7980, -183.3271, 76.0062, 5.00, -1000.0, -1000.0, -1000.0);
// and
MoveDynamicObject(gate, -547.7978, -183.3261, 78.6962, 5.00, -1000.0, -1000.0, -1000.0);
Let me know if it helps.

Oh wait, which plugin version are you using?
5 Warnings