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

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
//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;
        }
    }

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Streamer mate, streamer.
Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Well, yes you have a brain or?

PHP код:
if(!IsPlayerInRangeOfPoint(i,4.0,checkpoints[j][0],checkpoints[j][1],checkpoints[j][2])) continue; 
LOL, my mind isn't with scripting today I guess. Also, another problem has arisen:
The checkpoints disappear and appear over and over and i can't do anything in them because of that. Not sure what code to post.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)