help with an command.
#1

Hey,i have command "opengate" but it wont work,
the problem is the object wont move and it says %s takes his/her remote and opens Gothic hq gate.
and then says SERVER:unknown command

heres the lines from it

pawn Код:
if(IsAGothic(playerid))
        {
      if (PlayerToPoint(15, playerid,1084.9635009766, -1886.8415527344, 14.262490272522))
      {
        MoveObject(gothicgate,1094.5635009766, -1886.8415527344, 14.262490272522);
        SetTimer("closegate8", 7000, 0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s takes his/her remote and opens Gothic hq gate.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      }
      else { SendClientMessage(playerid, COLOR_GREY,"Destination is too far."); }
    }
Reply
#2

The command must return 1 and MoveObject() need a parameter speed, like it:

MoveObject(gothicgate, 1094.5635009766, -1886.8415527344, 14.262490272522, 3.0);
Reply
#3

pawn Код:
MoveObject(gothicgate,1094.5635009766, -1886.8415527344, 14.262490272522);
This line is wrong. Read the tuturial of "MoveObject" on wiki, i guess that this will solve the prob.

Cheers.
Reply
#4

oh thanks it works now :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)