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


Messages In This Thread
Checkpoint problem - by [Bm]rap45 - 03.02.2010, 17:12
Re: Checkpoint problem - by [Bm]rap45 - 04.02.2010, 00:24
Re: Checkpoint problem - by mansonh - 04.02.2010, 04:02
Re: Checkpoint problem - by Blantas - 04.02.2010, 06:31
Re: Checkpoint problem - by [Bm]rap45 - 05.02.2010, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)