[Ajuda] SetPlayerRaceCheckpoint - Ultimo CheckPoint
#1

Bom pessoal estou com um problema no meu teste de habilitaзгo, O ъltimo checkPoint nгo aparece.

olhem
Bom o ъltimo checkpoint й o 21, ele serve para poder habilitar o jogador a andar com o veiculo.


pawn Код:
Float:MotoTeste[21][3] =
{
    {-1194.6201, 1834.3516, 41.7072}, // race 1
    {-1183.2347, 1804.4128, 40.6482}, // race 2
    {-1456.1499, 1850.3590, 33.2142}, // race 3
    {-1738.2789, 1827.9923, 23.2913}, // race 4
    {-1816.9719, 2134.7849, 7.6998}, // race 5
    {-1617.6835, 2384.9641, 51.0172}, // race 6
    {-1530.3864, 2362.1067, 46.3298}, // race 7
    {-1522.9340, 2162.1206, 49.9073}, // race 8
    {-1475.3552, 2111.2744, 45.6838}, // race 9
    {-1360.6412, 2175.7813, 48.9361}, // race 10
    {-1323.3640, 1977.1005, 50.5539}, // race 11
    {-1234.7269, 1889.3953, 41.7600}, // race 12
    {-1183.0734, 1805.2289, 40.6253}, // race 13
    {-910.9447, 1694.8588, 27.2842}, // race 14
    {-850.3835, 1615.1832, 26.9407}, // race 15
    {-799.2859, 1535.8745, 26.9609}, // race 16
    {-839.9958, 1495.0887, 18.5569}, // race 17
    {-897.6324, 1683.4808, 27.2487}, // race 18
    {-1161.8694, 1791.9999, 40.1312}, // race 19
    {-1213.4529, 1817.0574, 41.7188}, // race 20
    {-1219.6810, 1807.7313, 41.4978}, // race 21
},

        else if(VerificarEtapa[playerid] == 21 && Velocidade(playerid, 1) < 80 && lataria >= 980.0)
        {
            SendClientMessage(playerid, 0x98FB98FF, "Vocк passou no teste de Habilitaзгo de moto, Vocк jб pode pilotar!");
            SendClientMessage(playerid, -1, "Para ver suas licenзas, digite /minhaslicencas");
            DadosJogador[playerid][LIC_MOTOS_JOGADOR] = 1;
            PlayerPlaySound(playerid,1057, X, Y, Z);
            Teste_Moto[playerid] = 0;
            VerificarEtapa[playerid] = 0;
            Pontos_Velocidade[playerid] = 0;
            SetPlayerVirtualWorld(playerid, 0);
            SetPlayerInterior(playerid, 3);
            DisablePlayerRaceCheckpoint(playerid);
            DisablePlayerCheckpoint(playerid);
            SetVehicleToRespawn(Veiculo);
            if(Licencas_LS[playerid] == 1)
            {
                SetPlayerPos(playerid, -2023.8905, -114.4800, 1035.1719);
                SetPlayerFacingAngle(playerid, 93.8901);
                Licencas_LS[playerid] = 0;
            }
        }
        if(IsPlayerInVehicle(playerid, Veiculo) || Velocidade(playerid, 1) >= 80 || Velocidade(playerid, 1) <= 80)
        {
            DisablePlayerRaceCheckpoint(playerid);
            if(VerificarEtapa[playerid] == 21)
            {
                SetPlayerRaceCheckpoint(playerid, 1, MotoTeste[VerificarEtapa[playerid]+1][0],MotoTeste[VerificarEtapa[playerid]+1][1],MotoTeste[VerificarEtapa[playerid]+1][2],MotoTeste[VerificarEtapa[playerid]+2][0],MotoTeste[VerificarEtapa[playerid]+2][1],MotoTeste[VerificarEtapa[playerid]+2][1],4.0);
            }
            else
            {
                SetPlayerRaceCheckpoint(playerid, 0, MotoTeste[VerificarEtapa[playerid]+1][0],MotoTeste[VerificarEtapa[playerid]+1][1],MotoTeste[VerificarEtapa[playerid]+1][2],MotoTeste[VerificarEtapa[playerid]+2][0],MotoTeste[VerificarEtapa[playerid]+2][1],MotoTeste[VerificarEtapa[playerid]+2][1],2.0);
            }
            VerificarEtapa[playerid] += 1;
            PlayerPlaySound(playerid,1058,X,Y,Z);
        }
Reply
#2

alguem?
Reply
#3

Skype?
Reply
#4

Comeзa a contar do id 0 :

pawn Код:
Float:MotoTeste[21][3] =
{
    {-1194.6201, 1834.3516, 41.7072}, // race 0
    {-1183.2347, 1804.4128, 40.6482}, // race 1
    {-1456.1499, 1850.3590, 33.2142}, // race 2
    {-1738.2789, 1827.9923, 23.2913}, // race 3...
Reply
#5

dessisto
Reply
#6

Me add no skype, Diego151215 e eu te ajudo por lб
Reply
#7

PHP код:
Float:MotoTeste[][3] =
{
    {-
0000.00000000.000000.0000}, // race DEBUG 0
    
{-1194.62011834.351641.7072}, // race 1
    
{-1183.23471804.412840.6482}, // race 2
    
{-1456.14991850.359033.2142}, // race 3
    
{-1738.27891827.992323.2913}, // race 4
    
{-1816.97192134.78497.6998}, // race 5
    
{-1617.68352384.964151.0172}, // race 6
    
{-1530.38642362.106746.3298}, // race 7
    
{-1522.93402162.120649.9073}, // race 8
    
{-1475.35522111.274445.6838}, // race 9
    
{-1360.64122175.781348.9361}, // race 10
    
{-1323.36401977.100550.5539}, // race 11
    
{-1234.72691889.395341.7600}, // race 12
    
{-1183.07341805.228940.6253}, // race 13
    
{-910.94471694.858827.2842}, // race 14
    
{-850.38351615.183226.9407}, // race 15
    
{-799.28591535.874526.9609}, // race 16
    
{-839.99581495.088718.5569}, // race 17
    
{-897.63241683.480827.2487}, // race 18
    
{-1161.86941791.999940.1312}, // race 19
    
{-1213.45291817.057441.7188}, // race 20
    
{-1219.68101807.731341.4978// race 21
}; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)