How to add this onto a timer?
#1

How would i add this code onto a timer
pawn Код:
if(PlayerToPoint(5.0,playerid,1245.5468,-767.7892,91.9618))
        {
        MoveObject(gate, 1245.535767, -767.239685, 86.785072, 2);
    {
I tried this but i got 4 errors
pawn Код:
public BenGate(playerid)
{
        if(PlayerToPoint(5.0,playerid,1245.5468,-767.7892,91.9618))
        {
        MoveObject(gate, 1245.535767, -767.239685, 86.785072, 2);
        }
}
If you would like to see the errors i'd be happy to give,
But how would i put that code onto public BenGate(playerid)?
As it checks every 1 milisecond to see if anyone is in that position,
If they are it opens the gate
Reply


Messages In This Thread
How to add this onto a timer? - by JoeDaDude - 28.05.2009, 17:59
Re: How to add this onto a timer? - by Nero_3D - 28.05.2009, 18:09
Re: How to add this onto a timer? - by JoeDaDude - 28.05.2009, 18:13
Re: How to add this onto a timer? - by JoeDaDude - 28.05.2009, 18:48
Re: How to add this onto a timer? - by Cabby - 28.05.2009, 18:50
Re: How to add this onto a timer? - by miokie - 28.05.2009, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)