16.04.2012, 21:05
well look at just this public
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
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);
}
}
}
}
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

