[Tutorial] Simple Automatic Gate Tutorial
#4

well look at just this public

pawn Code:
public GatesOpen()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(PlayerToPoint(10.0, i, x,y,z) && GateOpen == 0) //gate coords
        {
            //if(gTeam[i] == TEAM_NOOBS) //use this if you wish to set this for a specific class
            {
                MoveObject(Gate, x,y,z, 5); //new coords for the object to move
                GateOpen =1;
                SetTimer("GatesClose",7000,0);
        }
        }
    }
}
i dont see any where you have defined x,y,z with the "new" keyword or other wise
thats just one thing!

another is your using a function we dont have

PlayerToPoint
is not found on the wiki
(I know where to find it or how to make it but thats not the point)

also look threw the rest,
this should contain EVERYthing you need or otherwise youll confuse people.

I am just trying to help also please dont take offence to this, i know
its alot to write up a tutorial, but it is pointless if its not correct.

Also explain why you are doing what your doing,(for the noobies!!!)
or explain in the beginning you assume they can script..

hopefully this helps ya out a bit,
I know the tutorial could help alot of people just needs some touch ups.

if you havent read this yet I suggest you todo so,
it will help you when writing a tutorial
https://sampforum.blast.hk/showthread.php?tid=65567
Reply


Messages In This Thread
Simple Automatic Gate Tutorial - by Plastic - 16.04.2012, 20:45
Re: Simple Automatic Gate Tutorial - by Jonny5 - 16.04.2012, 20:56
Re: Simple Automatic Gate Tutorial - by Plastic - 16.04.2012, 20:59
Re: Simple Automatic Gate Tutorial - by Jonny5 - 16.04.2012, 21:05
Re: Simple Automatic Gate Tutorial - by Plastic - 16.04.2012, 21:15
Re: Simple Automatic Gate Tutorial - by Wickeed - 16.04.2012, 21:39
Re: Simple Automatic Gate Tutorial - by Plastic - 16.04.2012, 21:48
Re: Simple Automatic Gate Tutorial - by Facerafter - 27.04.2012, 13:12
Re: Simple Automatic Gate Tutorial - by System64 - 27.04.2012, 13:42
Re: Simple Automatic Gate Tutorial - by ReneG - 27.04.2012, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)