Timer
#5

PHP код:
forward PointCaptureTimer(pointtime);
public 
PointCaptureTimer(pointtime)
{
    new 
string[124];
    
printf("Time1: %d"PointTimeLeft[point]);
    if(
PointFam[point] != 0)
    {
         
printf("Time2: %d"PointTimeLeft[point]);
         
PointTimeLeft[point]--;
          if(
PointTimeLeft[point] == 0)
        {
               
Point[point][poFid] = PointFam[point];
               
format(Point[point][poCapper], MAX_PLAYER_NAMEpNameEx(PointCapper[point]));
            
Point[point][poDate] = gettime();
            
format(stringsizeof(string), "%s has successfully captured \"%s\"."Families[famEnum(Point[point][poCapper])][fName], Point[GetPointRange(Point[point][poCapper])][poName]);
            
ProxDetector(70.0Point[point][poCapper], stringCOLOR_RED);
            
PointX[point] = 0;
            
PointY[point] = 0;
            
PointZ[point] = 0;
            
PointCapper[point] = -1;
            
PointFam[point] = 0;
            
PointID[point] = -1;
            
PointTimeToClaim[point] = 0;
            
PointTimeLeft[point] = 0;
            
KillTimer(captureTimer);
        }
    }
    if(
time 0)
    {
        
captureTimer SetTimerEx("PointCaptureTimer"10000"dd"GetPointRange(PointCapper[point]), time 1);
        
printf("Timer: %d"time);
    }
    return 
1;

The timer starts at 600 seconds and counts down from there. It doesn't display that error until I begin to move around and what not. I have no idea why it does that.
Reply


Messages In This Thread
Timer - by mrtms - 05.02.2013, 18:26
Re: Timer - by zde5 - 05.02.2013, 18:29
Re: Timer - by mrtms - 05.02.2013, 18:32
Re: Timer - by zde5 - 05.02.2013, 18:35
Re: Timer - by mrtms - 05.02.2013, 18:38
Re: Timer - by mrtms - 05.02.2013, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)