Checkpoints
#1

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(Bit16_Get(Checkpoint, playerid))
    {
        if(PlayerInfo[playerid][pDMV] == true) //neam blage koji je ID to ćemo editati
        {
            new cpos = Bit16_Get(Checkpoint, playerid);
            if((cpos+1) < KOLICINA_CPOVA) //Kolicinu CPova ćes ti urediti u DMVCPs variabli
            {
                DisablePlayerCheckpoint(playerid);
                SetPlayerCheckpoint(playerid, DMVCP[cpos+1][0], DMVCP[cpos+1][1], DMVCP[cpos+1][2], 5.0);
                cpos++;
            }
            else
            {
                DisablePlayerCheckpoint(playerid);
                // proso
            }
        }
    }
    return 1;
}
I need to fit 100 lines in this lines, so how can I get all my checkpoints in one variable and use this tiny code instead of using a 100 lines?
Reply


Messages In This Thread
Checkpoints - by venomlivno8 - 17.10.2013, 12:09
Re: Checkpoints - by ]Rafaellos[ - 17.10.2013, 12:17
Re: Checkpoints - by venomlivno8 - 17.10.2013, 12:20
Re: Checkpoints - by ]Rafaellos[ - 17.10.2013, 12:22
Re: Checkpoints - by venomlivno8 - 17.10.2013, 12:25

Forum Jump:


Users browsing this thread: 1 Guest(s)