moving objects errors
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/up", cmdtext, true, 10) == 0)
    {
            MoveObject(elevator, 2898,-2657.30175781, 45.42610168,0.97);//elevator goes up
            SendClientMessage(playerid, 0xFF8000FF, "<Elevator> The elevator is going up!");
            return 1;
    }
    if (strcmp("/down", cmdtext, true, 10) == 0)
    {
        MoveObject(elevator, 2898,-2657.30175781, 6.04528284,0.97);//Elevator goes back down.
        SendClientMessage(playerid, 0xFF8000FF, "<Elevator> The elevator is going down!");
        return 1;
    }
    return 1;
}
I assume you already defined the elevator.
Reply


Messages In This Thread
moving objects errors - by Tizixoriginal - 20.01.2011, 18:51
Re: moving objects errors - by ExeC - 20.01.2011, 19:00
Re: moving objects errors - by Mikkel_Pedersen - 20.01.2011, 19:02
Re: moving objects errors - by Tizixoriginal - 20.01.2011, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)