problem with moveobject
#1

for some reason the object wont move :/

pawn Код:
new door;
new bool:Door;
new moving;
//in on filterscriptinit
     door = CreateObject(3113, -2305.1000976563, 2050, 0.9200000166893, 0, 0, 0);//door
//in onplayercommandtext
    if (strcmp(cmdtext, "/door", true)==0){
        if(moving != 3){
            if(Door == true){
                MoveObject(door, -2305.1000976563, 2050.0000, 0.9200000166893, 2.00 );
                Door = false;
            }else{
                MoveObject(door, -2305.1000976563, 2050.0000, 10.920000076294, 2.00 );
                Door = true;
            }
            moving = 3;
        }else SendClientMessage(playerid, 0xAAAAAAAA, "The lift is already moving");
        return 1;
    }
//in onobjectmoved
    if(moving != 0){moving = 0;}
Reply


Messages In This Thread
problem with moveobject - by jonesy - 23.05.2009, 20:00
Re: problem with moveobject - by jonesy - 23.05.2009, 20:59
Re: problem with moveobject - by jonesy - 24.05.2009, 18:18
Re: problem with moveobject - by Hot - 24.05.2009, 18:23
Re: problem with moveobject - by Weirdosport - 24.05.2009, 18:27
Re: problem with moveobject - by jonesy - 24.05.2009, 19:08
Re: problem with moveobject - by Weirdosport - 24.05.2009, 19:39
Re: problem with moveobject - by jonesy - 24.05.2009, 22:06
Re: problem with moveobject - by Weirdosport - 24.05.2009, 22:19
Re: problem with moveobject - by Larry - 24.05.2009, 23:00

Forum Jump:


Users browsing this thread: 1 Guest(s)