errors
#1

now i get unfined symbol objectid error..
- my objectid is 1608 .. CreateObject(1608, 821.84656, -2044.69141, 15.45633, -3.06000, -59.03994, 167.4198;
so how to define it ?

pawn Code:
new bool: gMoveObjects;

if(gMoveObjects == false)
{
    new Float: X, Float: Y, Float: Z;
    GetObjectPos(objectid, X, Y, Z);

    if(IsPlayerInRangeOfPoint(playerid, 30.0, X, Y, Z))
    {
        gMoveObjects = true;
        MoveObjects(0);
    }
}


forward MoveObjects(index);
public MoveObjects(index)
{
    new Float: X, Float: Y, Float: Z;
    GetObjectPos(objectid, x, y, z);

    for(new i; i != MAX_PLAYERS; ++i)
    {
        if(IsPlayerInRangeOfPoint(i, 30.0, 821.84656, -2044.69141, 15.45633))
        {
            static time;
            switch(index %= 6)
            {
                case 0: time = MoveObject(objectid, 821.84656, -2044.69141, 15.45633, 3);
                case 1: time = MoveObject(objectid, 823.4802, -2071.3523, 15.4563, 4);
                case 2: time = MoveObject(objectid, 821.5845, -2072.7134, 15.6320, 5);
                case 3: time = MoveObject(objectid, 835.9559, -2088.6130, 15.6320, 6);
                case 4: time = MoveObject(objectid, 844.3004, -2084.1091, 16.0045, 7);
                case 5: time = MoveObject(objectid, 849.3589, -2059.7637, 15.6320, 8);
            }
            ++index;
            SetTimerEx("MoveObjects",time+150,false,"i",index);
            return ;
        }
    }
    gMoveObjects = false;
}
Reply


Messages In This Thread
errors - by noamch1997 - 21.08.2014, 17:37
Re : errors - by S4t3K - 21.08.2014, 17:43
Re: Re : errors - by noamch1997 - 21.08.2014, 20:11
Re: errors - by Andre02 - 21.08.2014, 20:33
Re: errors - by noamch1997 - 22.08.2014, 02:40

Forum Jump:


Users browsing this thread: 1 Guest(s)