SA-MP Forums Archive
MoveObject / MoveDynamicObject - 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: MoveObject / MoveDynamicObject (/showthread.php?tid=520301)



MoveObject / MoveDynamicObject - ptapiass - 18.06.2014

Hi, I have a problem, I want to rotate a door with a speed, I have tried a lot of functions, and I don't know what i'm doing wrong.
I tried with SetDynamicObjectRot(object, rotX, rotY, rotZ); the problem of this funtion is that it moves the door suddenly, I also tried with this RotateObject(objectid,Float:rotX,Float:rotY,Float: rotZ,points,Floatpeed), but I finally found the perfect funcion MoveObject(object, posX, posY, posZ +0.0001, 0.0001, rotX, rotY, rotZ); the arguments are ok (https://sampwiki.blast.hk/wiki/MoveObject) but when i click compile, it gives me this error: warning 202: number of arguments does not match definition.
I know the arguments are good, so where is the error? Please help me


Re: MoveObject / MoveDynamicObject - UnknownOwner - 18.06.2014

Show us the code in which you made MoveObject function.


Re: MoveObject / MoveDynamicObject - ptapiass - 18.06.2014

Here it is:

if(strcmp("/apswat", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(10.0,playerid, -2480.6821, -616.3712, 132.3620))
{
MoveObject(portonswat, -2485.7051, -611.3829, 133.7759 +2.0001, 0.0001, 0.0, 0.0, 358.1223);
SetTimer("portonswatc",5000,0);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFF00AA, "{00AF00}Porton Abierto.{FF0000} Se cerrara en 5 segundos!");
}
return 1;
}


Re: MoveObject / MoveDynamicObject - ptapiass - 19.06.2014

Help please