DynamicCP Don't work
#3

Try adding a printf statement at the top of the callback to see if it's the code not working properly, or the callback that isn't called properly.

PHP код:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    
printf("Player %i entering dynamic checkpoint %i"playeridcheckpointid); 
If that works, the checkpoints are working.

On the other hand, try a range of 1.5 for your PlayerToPoint function, but still create them with a diameter of 1.4.
The player may enter the checkpoint, but he could be at 1.401 meters distance and your code will fail of course, just because of floating point inaccuracies.
Reply


Messages In This Thread
DynamicCP Don't work - by Dominic123 - 28.05.2015, 19:19
Re: DynamicCP Don't work - by Dominic123 - 28.05.2015, 20:41
Re: DynamicCP Don't work - by PowerPC603 - 28.05.2015, 20:53
Re: DynamicCP Don't work - by Konstantinos - 28.05.2015, 20:57
Re: DynamicCP Don't work - by Dominic123 - 29.05.2015, 07:42
Re: DynamicCP Don't work - by Dominic123 - 29.05.2015, 15:47
Re: DynamicCP Don't work - by Konstantinos - 29.05.2015, 15:59
Re: DynamicCP Don't work - by Dominic123 - 29.05.2015, 17:28
Re: DynamicCP Don't work - by Konstantinos - 29.05.2015, 17:46
Re: DynamicCP Don't work - by Dominic123 - 29.05.2015, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)