24.03.2012, 00:44
Retirei os erros do seu cуdigo :
Espero ter ajudado .
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 .