[ajuda]error checkpoints
#7

Retirei os erros do seu cуdigo :



pawn Код:
//A variбvel array PointCarteira:

new Float:PointCarteira[7][3] =
{
    {148.8507,-2168.2698,1.3438},
    {139.2712,-2185.3298,1.3438},
    {149.7258,-2199.6924,1.3438},
    {138.8406,-2214.6833,1.3438},
    {148.9574,-2222.3909,1.3438},
    {144.1487,-2250.9331,1.7188},
    {144.2233,-2303.0369,1.3438}
};


//O switch:

switch(Stats[playerid])
    {
        case 1:
        {
            DisablePlayerRaceCheckpoint(playerid);
            SetPlayerRaceCheckpoint(playerid, 0, PointCarteira[0][0], PointCarteira[0][1], PointCarteira[0][2], PointCarteira[1][0], PointCarteira[1][1], PointCarteira[1][2], 10);
            Stats[playerid] = 2;
            return 1;
        }
        case 2:
        {
            DisablePlayerRaceCheckpoint(playerid);
            SetPlayerRaceCheckpoint(playerid, 0, PointCarteira[1][0], PointCarteira[1][1], PointCarteira[1][2], PointCarteira[2][0], PointCarteira[2][1], PointCarteira[2][2], 10);
            Stats[playerid] = 3;
            return 1;
        }
        case 3:
        {
            DisablePlayerRaceCheckpoint(playerid);
            SetPlayerRaceCheckpoint(playerid, 0, PointCarteira[2][0], PointCarteira[2][1], PointCarteira[2][2], PointCarteira[3][0], PointCarteira[3][1], PointCarteira[3][2], 10);
            Stats[playerid] = 4;
            return 1;
        }
        case 4:
        {
            DisablePlayerRaceCheckpoint(playerid);
            SetPlayerRaceCheckpoint(playerid, 0, PointCarteira[3][0], PointCarteira[3][1], PointCarteira[3][2], PointCarteira[4][0], PointCarteira[4][1], PointCarteira[4][2], 10);
            Stats[playerid] = 5;
            return 1;
        }
        case 5:
        {
            DisablePlayerRaceCheckpoint(playerid);
            SetPlayerRaceCheckpoint(playerid, 0, PointCarteira[4][0], PointCarteira[4][1], PointCarteira[4][2], PointCarteira[5][0], PointCarteira[5][1], PointCarteira[5][2], 10);
            Stats[playerid] = 6;
            return 1;
        }
        case 6:
        {
            DisablePlayerRaceCheckpoint(playerid);
            SetPlayerRaceCheckpoint(playerid, 0, PointCarteira[5][0], PointCarteira[5][1], PointCarteira[5][2], PointCarteira[6][0], PointCarteira[6][1], PointCarteira[6][2], 10);
            Stats[playerid] = 7;
            return 1;
        }
    }


Espero ter ajudado .
Reply


Messages In This Thread
[ajuda]error checkpoints - by MagneticLove- - 24.03.2012, 00:16
Re: [ajuda]error checkpoints - by histire - 24.03.2012, 00:18
Re: [ajuda]error checkpoints - by MagneticLove- - 24.03.2012, 00:22
Re: [ajuda]error checkpoints - by histire - 24.03.2012, 00:34
Re: [ajuda]error checkpoints - by MagneticLove- - 24.03.2012, 00:39
Re: [ajuda]error checkpoints - by histire - 24.03.2012, 00:43
Re: [ajuda]error checkpoints - by rjjj - 24.03.2012, 00:44
Re: [ajuda]error checkpoints - by MagneticLove- - 24.03.2012, 00:51
Re: [ajuda]error checkpoints - by rjjj - 24.03.2012, 01:07
Re: [ajuda]error checkpoints - by MagneticLove- - 24.03.2012, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)