Checkpoint Issue
#1

Can anyone tell me why the variables are being ignored and the last checkpoint is called no matter what checkpoint is the current target?

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(FirstCheckpoint == 1 && BlastDoorsOpen == 0 && SecDoorsOpen == 0 && JetpackStolen == 0)
    {
        SetPlayerCheckpoint(playerid, 211.6523, 1812.2909, 21.8594, 1.0);
    }
   
    else if(FirstCheckpoint == 0 && BlastDoorsOpen == 0 && SecDoorsOpen == 0 && JetpackStolen == 0)
    {
        SetPlayerCheckpoint(playerid, 279.4721, 1855.4517, 8.7649, 1.0);
    }

    else if(FirstCheckpoint == 0 && BlastDoorsOpen == 1 && SecDoorsOpen == 0 && JetpackStolen == 0)
    {
        SetPlayerCheckpoint(playerid, 268.6385, 1883.4900, -30.0938, 1.0);
    }

    else if(FirstCheckpoint == 0 && BlastDoorsOpen == 1 && SecDoorsOpen == 1 && JetpackStolen == 0)
    {
        SetPlayerCheckpoint(playerid, 427.6015, 2530.6992, 16.6272, 2.0);
    }
    return 1;
}
It should work fairly straight forward, the variable values tell the server what checkpoint to set. Yet for some reason the last checkpoint gets called regardless.
Reply


Messages In This Thread
Checkpoint Issue - by Infamous - 27.11.2011, 00:17
Re: Checkpoint Issue - by Tanush123 - 27.11.2011, 01:00
Re: Checkpoint Issue - by Infamous - 27.11.2011, 10:11
Re: Checkpoint Issue - by Tanush123 - 27.11.2011, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)