16.10.2017, 11:33
Hi! I find bug in plugin, sometimes the checkpoint is not deleted.
Create:
The strangest thing is that the action is triggered from
and the message goes "Checkpoint disabled". But the checkpoint does not delete
Create:
Quote:
|
PlayerVar[playerid][pGPS] = CreateDynamicRaceCP(1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.0, 0, 0, playerid, 100000.0); |
Quote:
|
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid) { if(checkpointid == PlayerVar[playerid][pGPS]) { DestroyDynamicRaceCP(PlayerVar[playerid][pGPS]); PlayerVar[playerid][pGPS] = -1; SCM(playerid, 0x669933FF, !"Checkpoint disabled."); } return 1; } |
Quote:
|
if(checkpointid == PlayerVar[playerid][pGPS]) |

