help gate wont move
#4

It does look like you're entering the model ID of the object (980) and not the actual ID of the object instance. You should make an easier way to reference to the ID of the object by storing it in a variable. For example:

pawn Код:
new gateobject;

public OnGameModeInit() // Or wherever you create those objects
{
    gateobject = CreateObject(980,0.0,0.0,0.0,0.0,0.0,0.0); // CreateObject returns the ID of the object instance, so store it in the gateobject variable.
    return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmdtext,"/test",true) == 0)
    {
        MoveObject(gateobject,0.0,0.0,0.0,5.0); // Move the object where you want, referencing to the object ID using the value stored in the gateobject variable
        return 1;
    }
    return 0;
}
Hope that helps.
Reply


Messages In This Thread
help gate wont move - by Tom1412 - 23.10.2010, 22:09
Re: help gate wont move - by Memoryz - 23.10.2010, 22:12
Re: help gate wont move - by Tom1412 - 23.10.2010, 23:02
Re: help gate wont move - by JaTochNietDan - 23.10.2010, 23:28
Re: help gate wont move - by Tom1412 - 23.10.2010, 23:41
Re: help gate wont move - by JaTochNietDan - 23.10.2010, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)