moving objects
#8

It didn't work... i tryed to do something and i got this

pawn Код:
if(!strcmp("/activate",cmdtext))
{
  if(IsPlayerInRangeOfPoint(playerid,1, 1006.2309,1027.5194,48.1328))
  {
        PlayerPlaySound(playerid, 1020, 0.0, 0.0, 0.0);
        SendClientMessage(playerid,0x33AA33AA,"Platform will start moving in a few seconds");
        MoveObject(obj,994.28308105469, 1051.5045166016, 48.0, 15.00);
        }
        else
        {
        MoveObject(obj,994.28308105469, 1051.5045166016, 357.8299, 15.00);
       }
       return 1;
}

    return 0;
}

I get no errors when i compile, but when i press /activate, the object doesn't move.


If i reverse the coordinate like this

pawn Код:
MoveObject(obj,994.28308105469, 1051.5045166016, 357.8299, 15.00);
      }
      else
      {
      MoveObject(obj,994.28308105469, 1051.5045166016, 48.0, 15.00);

The object moves, but only for one time (this means it doesn't go down once it's gone up)
Reply


Messages In This Thread
moving objects - by Freddy Z - 29.03.2010, 13:43
Re: moving objects - by XRVX - 29.03.2010, 13:44
Re: moving objects - by aircombat - 29.03.2010, 13:45
Re: moving objects - by Freddy Z - 30.03.2010, 18:04
Re: moving objects - by aircombat - 30.03.2010, 20:29
Re: moving objects - by Freddy Z - 01.04.2010, 16:37
Re: moving objects - by Rand_Omar - 01.04.2010, 16:49
Re: moving objects - by Freddy Z - 01.04.2010, 18:26
Re: moving objects - by Freddy Z - 02.04.2010, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)