29.06.2009, 20:26
Hello,
I'm trying to make one object move to more locations then just one ( as seen in samp wiki )
when i try..it moves direct to the last point and keeps forgetting the other possitions.
I got no errors
maybe its just a } or { but i cant find it, please help
( o ye..i did float xk yk zk and xm ym zm )
I'm trying to make one object move to more locations then just one ( as seen in samp wiki )
when i try..it moves direct to the last point and keeps forgetting the other possitions.
I got no errors
maybe its just a } or { but i cant find it, please help
( o ye..i did float xk yk zk and xm ym zm )
Code:
public OnObjectMoved(objectid) { GetObjectPos(obj, xk , yk , zk ); if (obj == xk, yk, zk) { MoveObject(obj,273.3177,1888.3771,17.6406, 5.00); } GetObjectPos(obj, xl , yl , zl ); if (obj == xl, yl, zl) { MoveObject(obj,264.5370,1888.0536,17.4770, 5.00); } GetObjectPos(obj, xm , ym , zm ); if (obj == xm, ym, zm) { MoveObject(obj,264.3640,1879.8628,17.6406, 5.00); }