Код:
public OnPlayerLeaveStreamRCheckpoint(playerid,checkpointid)
{
if(checkpointid == racecp1)
{
if(IsPlayerInVehicle(playerid,cartest))
{
DestroyStreamedRaceCheckpoint(racecp1);
racecp2 = CreateRaceCheckpointToStream(0, -2026.701049, -186.445190, 35.320312, -2062.455322, -122.077514, 35.325839, 3, 250);
}
}
if(checkpointid == racecp2)
{
if(IsPlayerInVehicle(playerid,biketest))
{
DestroyStreamedRaceCheckpoint(racecp2);
DestroyStreamedObject(des1);
/*racecp3 = CreateRaceCheckpointToStream(0, -2062.455322, -122.077514, 35.325839, -2082.584960, -180.523376, 35.320312, 3, 250);*/
}
}
return 1;
}
i have no errors but when i enter on the race cp's it doent do anything of that. on the first. what im doing wrong. i also tried on the enter race cp but with no luck. pls help and i use this streamer