SA-MP Forums Archive
(117324) : error 025: function heading differs from prototype - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: (117324) : error 025: function heading differs from prototype (/showthread.php?tid=500595)



(117324) : error 025: function heading differs from prototype - vothanhdat - 14.03.2014

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;