i get a error
#6

Quote:
Originally Posted by Ettans
You don't need to put the object id in MoveObject, since the native of it is: MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed).
can you make of this:
pawn Код:
if (strcmp("/opengate1", cmdtext, true) == 0)
    {
        MoveObject(gate1, 1385.557617, -2688.828857, 272.734619, 5); //5 is the speed of opening and the coords when the gate is opened
        SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
        return 1;
    }
and this coordinate:
pawn Код:
CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000);
ah command?
please help me
this is the full command:
i have added this on top
pawn Код:
new gate1;
this at create objects:
pawn Код:
gate1 = CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000); // coords of closed gate
and this at OnPlayerCommandText:
pawn Код:
if (strcmp("/opengate1", cmdtext, true) == 0)
    {
        MoveObject(gate1, 980, 1385.557617, -2688.828857, 5); //5 is the speed of opening and the coords when the gate is opened
        SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
        return 1;
    }
please help me ty
Reply


Messages In This Thread
i get a error - by luckie12 - 30.04.2009, 14:19
Re: i get a error - by luckie12 - 30.04.2009, 14:32
Re: i get a error - by Nero_3D - 30.04.2009, 14:32
Re: i get a error - by ettans - 30.04.2009, 14:34
Re: i get a error - by luckie12 - 30.04.2009, 14:36
Re: i get a error - by luckie12 - 30.04.2009, 14:44
Re: i get a error - by RenisiL - 30.04.2009, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)