|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Apr 2009
Posts: 138
Reputation: 6
|
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.
Code:
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;
}
|
|
|
|
|
#2 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Zenica,Bosnia&Herzegovina
Posts: 205
Reputation: 16
|
try like this:
Quote:
|
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2010
Posts: 1,306
Reputation: 86
|
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. |
|
|
|
|
#4 |
|
Big Clucker
![]() ![]() Join Date: Apr 2009
Posts: 138
Reputation: 6
|
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.
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| moveobject | Strawhats | Help Archive | 3 | 29/03/2011 03:57 PM |
| MoveObject | Mike Garber | Help Archive | 4 | 05/01/2011 05:39 PM |
| Help MoveObject? | legho | Help Archive | 1 | 29/09/2010 05:15 PM |
| [Help] Moveobject | borisblat | Help Archive | 2 | 28/06/2009 06:48 PM |