error 047: array sizes do not match, or destination array is too small
#4

//Edit: Ok you dont need this function, just write it like this:

PHP код:
public checkpointUpdate()
{
    for(new 
ii<MAX_PLAYERSi++)
    {
        if(!
IsPlayerConnected(i)) continue;
        for(new 
jsizeof checkpointsj++)
        {
            if(!
IsPlayerInRangeOfPoint(i,4.0,checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3])) continue;
            if(
playerCheckpoint[i]!=j)
            {
                
SetPlayerCheckpoint(icheckpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
                
playerCheckpoint[i] = j;
            }
            else 
DisablePlayerCheckpoint(i),playerCheckpoint[i] = 999;
        }
    }

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)