SA-MP Forums Archive
Barrier Moving problem - 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: Barrier Moving problem (/showthread.php?tid=325035)



Barrier Moving problem - Jaber_Brown - 11.03.2012

i got this

pawn Код:
barrierdown = CreateObject(968,1810.89941406,-1882.89941406,13.60000038,0.00000000,90.00000000,269.99450684); //object(barrierturn) (1)
pawn Код:
CMD:rentcar(playerid, params[])
{
    MoveObject(barrierdown, 1810.89941406, -1882.89941406, 13.60000038, 2.0);
    return 1;
}
When i /rentcar IG, the barrier won't move, (U can see i put only X Y Z Coordinates + speed ) And when i put the whole coordinate
968,1810.89941406,-1882.89941406,13.60000038,0.00000000,0.00000000,26 9.99996948

It moves somewhere , and looks invisible, ,


Re: Barrier Moving problem - nmader - 11.03.2012

From what I saw on your pawn code, your mistake is you identified Barrierdown in this script:
pawn Код:
barrierdown = CreateObject(968,1810.89941406,-1882.89941406,13.60000038,0.00000000,90.00000000,269.99450684); //object(barrierturn) (1)
Now, I looked at the cords, the find that they match exactly int his pawn code:
pawn Код:
CMD:rentcar(playerid, params[])
{
    MoveObject(barrierdown, 1810.89941406, -1882.89941406, 13.60000038, 2.0);
    return 1;
}
Meaning it is not actually moving, but is practically despawning, where you have MoveObect(barrierdown, 1810.89941406, -1882.899414406, 13.60000038, 2.0) You should replace the cords with where you want them to be, rather than where they currently are.

Hope I helped.