Job Checkpoint Bug
#2

You need to put an else between the ifs in OnPlayerEnterCheckpoint.

Otherwise all other checkpoints will activate instantly in order, because JobTruckerCheckpoint has been increased and the if() after that executes.

It should look like this:

PHP код:
}
    if(
JobTruckerCheckpoint[playerid] == 1)
    {
        
// code
    
}
    else if(
JobTruckerCheckpoint[playerid] == 2)
    {
        
// code
    
}
    else if(
JobTruckerCheckpoint[playerid] == 3)
    {
        
// code
    
}
    
// etc... 
Reply


Messages In This Thread
Job Checkpoint Bug - by Fabyx15 - 03.12.2018, 16:33
Re: Job Checkpoint Bug - by NaS - 03.12.2018, 16:37
Re: Job Checkpoint Bug - by Fabyx15 - 03.12.2018, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)