01.04.2010, 18:26
It didn't work... i tryed to do something and i got this
I get no errors when i compile, but when i press /activate, the object doesn't move.
If i reverse the coordinate like this
The object moves, but only for one time (this means it doesn't go down once it's gone up)
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)