(117324) : error 025: function heading differs from prototype
#1

help me
PHP код:
forward OnRaceCowbo2();
public 
OnRaceCowbo2(objectid)
{
    if(
RaceStep==4)
    {
        for(new 
racer;racer<5;racer++)
        {
            if(
objectid==CowRacer[racer])
            {
                
CowStep[racer]++;
                if(
CowStep[racer]==MAX_PACES)
                {
                    
RaceWinner=racer;
                    
OnRaceUpdate();
                    return 
1;
                }
                if(
CowStep[racer]==MAX_PACES-5)
                {
                    if(
CowsRigged[racer][3]==1)
                    {
                        
CowStep[racer]--;
                        
CowsRigged[racer][3]=0//So it doesn't repeat >.<
                        
return SetTimerEx("OnObjectMoved",RIG_PIT_STOP_TIME,0,"i",objectid);
                    }
                    if(
CowsRigged[racer][2]==1)CowStep[racer]=MAX_PACES-1;
                }
                
MoveObject(CowRacer[racer],XPaces[racer],YPaces[CowStep[racer]],8.695835,random(MAX_SPEED+((CowsRigged[racer][0]==1)?(RIG_SPEED):(0))-MIN_SPEED+((CowsRigged[racer][1]==1)?(-RIG_SPEED):(0)))+MIN_SPEED);
                if(
LabelIsOn[racer])Delete3DTextLabel(CowNames[racer]);
                
CowNames[racer]=Create3DTextLabel(GetRacerName(racer),GetRacerColor(racer),XPaces[racer],YPaces[CowStep[racer]],10,100,0,1);
            }
        }
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)