error 010: invalid function or declaration
#9

Quote:
Originally Posted by XK
Посмотреть сообщение
As i have told you,it should be
pawn Код:
public OnObjectMoved(objectid)
{
    if(objectid != gFerrisWheel) return 0;

    SetTimer("RotateWheel",3*1000,0);
   
    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;
}
thanks
Reply


Messages In This Thread
error 010: invalid function or declaration - by vothanhdat - 02.05.2014, 10:15
Re: error 010: invalid function or declaration - by Eth - 02.05.2014, 10:16
Re: error 010: invalid function or declaration - by Konstantinos - 02.05.2014, 10:21
Re: error 010: invalid function or declaration - by XK - 02.05.2014, 10:23
Re: error 010: invalid function or declaration - by Eth - 02.05.2014, 10:23
Re: error 010: invalid function or declaration - by vothanhdat - 02.05.2014, 10:25
Re: error 010: invalid function or declaration - by Eth - 02.05.2014, 10:27
Re: error 010: invalid function or declaration - by XK - 02.05.2014, 10:27
Re: error 010: invalid function or declaration - by vothanhdat - 02.05.2014, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)