Help, Moving object
#1

Hello

I'm trying to make a test object move, But there's a problem, The object do move, But another object stays there where the original object moved :\




Here's my code:
pawn Код:
if(strcmp(cmd,"/test",true)==0)
    {
        new test;
        test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
       
        if(gTeam[playerid] == 1)
        {
            if(IsPlayerInRangeOfPoint(playerid,30,2091.7006835938, -1753.1389160156, 15.178255081177))
            {
                MoveObject(test,2091.7006835938, -1753.1389160156, 30.178255081177,5);
            }
            else
            {
                SendClientMessage(playerid,RED2,"You are too far!");
            }
        }
       
        else
        {
            SendClientMessage(playerid,GREEN,"You can't do that in your team!");
        }
        return 1;
    }


p.s: some of the "{,}" position changes in CODE for some reason..
Reply


Messages In This Thread
Help, Moving object - by Crashty - 02.10.2010, 11:51
Re: Help, Moving object - by iRana - 02.10.2010, 13:10
Re: Help, Moving object - by Crashty - 02.10.2010, 13:18
Re: Help, Moving object - by VIRUXE - 02.10.2010, 13:23
Re: Help, Moving object - by Bessensap - 02.10.2010, 14:44
Re: Help, Moving object - by Crashty - 02.10.2010, 14:59

Forum Jump:


Users browsing this thread: 4 Guest(s)