Checkpoint problem
#1

Ok so i can get in the checkpoint and go into an interior but... when i'm in the interior the other checkpoint ( the exit checkpoint) doesn't appear! D: and my script doesn't show any errors so idk D:

My defines
pawn Код:
#define house    0
#define exit     1
My gamemodeinit
pawn Код:
CreateCheckpoint(0, house, 2513.6108,-1650.3096,14.3557, 1.0);
    CreateCheckpoint(7, exit, 225.8443,1021.4703,1084.0177, 1.0);
    SetCheckpointInterior(house, 0);
    SetCheckpointInterior(exit, 7);
    StartCheckpointSeeking();
verifycheckpoint thingy
pawn Код:
public OnPlayerEnterCheckpoint(playerid){
    VerifyCheckpoint(playerid);
    return 1;
}
Checkpointeneterthingy
pawn Код:
public OnCheckpointEnter(playerid, checkpointid){
    switch(checkpointid)
    {

      case house: // The checkpoint ID we specified when we created the checkpoint
      {
            SetPlayerPos(playerid,225.4502,1024.7152,1084.0078);
        SetPlayerInterior(playerid,7);
      }
      case exit:
      {
        SetPlayerPos(playerid,2498.4055,-1644.3215,13.7826);
        SetPlayerInterior(playerid,0);
        }
    }
    return 1;
}
Reply
#2

Any help? please
Reply
#3

Looks like your using some checkpoint streamer, I would ask on the post for that streamer.
Reply
#4

Try to do this:

Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{

  case house: // The checkpoint ID we specified when we created the checkpoint
  {
    SetPlayerPos(playerid,225.4502,1024.7152,1084.0078);
    SetPlayerInterior(playerid,7);
    DisablePlayerCheckpoint(playerid);
  }
  case exit:
  {
    SetPlayerPos(playerid,2498.4055,-1644.3215,13.7826);
    SetPlayerInterior(playerid,0);
  }
}
return 1;
}
Reply
#5

No luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)