11.07.2010, 15:12
so i tried to make some checkpoints for a dmv and i can compile and i have no errors
BUT.... i enter the first CP and that disappears and shows the next one (good ) but when i enter the next one, it doesn't disappear. it just flashes loads and the next CP doesn't come up
BUT.... i enter the first CP and that disappears and shows the next one (good ) but when i enter the next one, it doesn't disappear. it just flashes loads and the next CP doesn't come up
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(IsPlayerInRaceCheckpoint(playerid) == dmvcp1)
{
DisablePlayerRaceCheckpoint(playerid);
dmvcp2 = SetPlayerRaceCheckpoint(playerid,0,627.6588,-1574.8263,15.3754,545.7725,-1583.8511,15.8903,5);
return 1; //this works when i enter.
}
if(IsPlayerInRaceCheckpoint(playerid) == dmvcp2)
{
DisablePlayerRaceCheckpoint(playerid);
dmvcp3 = SetPlayerRaceCheckpoint(playerid,0,545.7725,-1583.8511,15.8903,455.8187,-1582.7604,25.1871,5);
return 1; //this checkpoint doesn't disappear...
}
if(IsPlayerInRaceCheckpoint(playerid) == dmvcp3)
{
DisablePlayerRaceCheckpoint(playerid);
dmvcp4 = SetPlayerRaceCheckpoint(playerid,0,455.8187,-1582.7604,25.1871,398.6375,-1414.8552,33.9198,5);
return 1;
}
//and so on etc.. just posted first few to show what i have done
}