28.05.2015, 20:53
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.
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.
PHP код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
printf("Player %i entering dynamic checkpoint %i", playerid, checkpointid);
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.