MoveObject - Help
#1

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..
Reply
#2

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;
}

Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)