SA-MP Forums Archive
Race cp's problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Race cp's problem (/showthread.php?tid=171457)



Race cp's problem - billiout - 26.08.2010

i have this code on leave race cp's.

Код:
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 https://sampforum.blast.hk/showthread.php?tid=167349


Re: Race cp's problem - billiout - 26.08.2010

Bump pls help


Re: Race cp's problem - billiout - 26.08.2010

No one? Pls help


Re: Race cp's problem - Mike_Peterson - 26.08.2010

maybe its the streamer, maybe try adding at the second cp
Код:
else if(checkpointid == racecp2)