MoveObject / MoveDynamicObject
#1

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
Reply
#2

Show us the code in which you made MoveObject function.
Reply
#3

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;
}
Reply
#4

Help please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)