23.10.2010, 23:28
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:
Hope that helps.
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;
}