MoveObject - Help - 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: MoveObject - Help (
/showthread.php?tid=246851)
MoveObject - Help -
Compton - 06.04.2011
Hello, well I have a little problem. I mapped a base that has a gate at the entrance. I tried to make a MoveObject cmd for it, and did everything what its told todo in Wiki, but when I go to the server and type the command it only me shows me the text and nothing more happends, I dont know whats the problem with it, please help.
Код:
if(strcmp(cmdtext, "/rg", true) == 0)
{
new movetime = MoveObject(rggate,2944.2483,-2051.3008,270.5893, 0.2);
format(string, sizeof(string), "Welcome to RG Base.", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
p.s. dont give me link for MoveObject at Wiki, since I seen it allready..
Re: MoveObject - Help -
Amel_PAtomAXx - 06.04.2011
try like this:
Quote:
if(strcmp(cmdtext, "/rg", true) == 0)
{
new string[128];
new movetime = MoveObject(rggate,2944.2483,-2051.3008,270.5893, 0.2);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid,0xFF000000,"Welcome to RG Base.");
return 1;
}
|
Re: MoveObject - Help -
alpha500delta - 06.04.2011
Quote:
Originally Posted by Amel_PAtomAXx
try like this:
|
You're only formatting the text, you are not sending it, learn
this please.
And for the question, are you're MoveObjects coordinates different from the CreateObject ones? otherwise it won't move ofcourse.
Re: MoveObject - Help -
Compton - 06.04.2011
I gave my CreatedObject the name rggate, and as you can see in my Command I typed it in, and as for the coordinates in my MoveObject I typed in the coordinates of the place that the Gate should move to.