SA-MP Forums Archive
move object bug?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: move object bug?? (/showthread.php?tid=291832)



move object bug?? - Tom1412 - 21.10.2011

hi,

What happens is when I type the command to move the objects instead of going up, it goes to the south.

Does anyone know why?


Problem command
pawn Код:
if(!strcmp(cmdtext, "/liftoneup"))
    {
        new pWorkingSkins = GetPlayerSkin(playerid);
        if(!IsWorkingskin2(playerid,pWorkingSkins)) return SendClientMessage(playerid,Error_Message_Color,"You are not have permission to use this command");
        {
            if (lift1up != 1)
            {
            MoveObject(lift1b1, 0, 0, 21, 2.00);
            MoveObject(lift1b2, 0, 0, 21, 2.00);
            MoveObject(lift1b3, 0, 0, 18.760000228882, 2.00);
            MoveObject(lift1b4, 0, 0, 18.364999771118, 2.00);
            MoveObject(lift1b5, 0, 0, 18.770000457764, 2.00);
            MoveObject(lift1b6, 0, 0, 18.360000610352, 2.00);
            lift1up = 1;
            SendClientMessage(playerid, Message_Color, "Raising lift one");
            SendClientMessage(playerid, Message_Color, "Use /liftdown to lower the lift.");
            }
            else return SendClientMessage(playerid, Error_Message_Color, "Lift one is allready reased");
        }
        return 1;
    }



Re: move object bug?? - AeroBlast - 21.10.2011

You have to insert the x and y position also. Now lift1b1 is going to the coordinates: 0, 0, 21.


Re: move object bug?? - Tom1412 - 22.10.2011

ok, I understand what your saying thanx.