11.04.2009, 18:19
Hello,
i have made a object somewhere (switch) and to use the object i want it to be able to open the door but you need to be at the switch, but i can't get it to work it comes up with 3 errors.. Can someboody help here is the code below.
if(newkeys == KEY_ACTION)
{
if(PlayerToPoint(30, playerid,245.0578,72.4314,1002.5406))
{
MoveObject(lspddoor1, 244.0578,72.4314,1002.5406, 3.5000);
MoveObject(lspddoor2, 247.1478,72.4314,1002.5406, 3.5000);
return 1;
}
}
return 1;
}
Why won't it work?
i have made a object somewhere (switch) and to use the object i want it to be able to open the door but you need to be at the switch, but i can't get it to work it comes up with 3 errors.. Can someboody help here is the code below.
if(newkeys == KEY_ACTION)
{
if(PlayerToPoint(30, playerid,245.0578,72.4314,1002.5406))
{
MoveObject(lspddoor1, 244.0578,72.4314,1002.5406, 3.5000);
MoveObject(lspddoor2, 247.1478,72.4314,1002.5406, 3.5000);
return 1;
}
}
return 1;
}
Why won't it work?