Need help making this shorter.
#3

pawn Код:
public GrowingPeriod()
{
    GramAmount++; //Will do always +1
    if(GramAmount == 45)
    {
        //Do your stuff here for if it reaches 45
    }
}
First of all there is no need of the variable playerid in your example. Remove this variable (if not needed) and remove also the SetTimerEx functions.
Just edit the main timer's repeating state to true and remove the uneeded extension for this callback (ofc if not needed)
Reply


Messages In This Thread
Need help making this shorter. - by Kindred - 07.01.2012, 03:48
Re: Need help making this shorter. - by cessil - 07.01.2012, 03:58
AW: Need help making this shorter. - by BigETI - 07.01.2012, 04:03

Forum Jump:


Users browsing this thread: 1 Guest(s)