SA-MP Forums Archive
[Tutorial] [TUT]Como Criar uma Corrida por RaceCheckpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Tutorial] [TUT]Como Criar uma Corrida por RaceCheckpoint (/showthread.php?tid=143924)

Pages: 1 2


[TUT]Como Criar uma Corrida por RaceCheckpoint - andmeida10 - 24.04.2010

Bem, eu nгo testei, hoje de manhг andei a procura, e so agora encontrei:

Vamos lб:

Topo do GM:

pawn Код:
new Stats[MAX_PLAYERS];
new Float:Checkpoints[4][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z)
{
     {X,Y,Z},
     {X,Y,Z},
     {X,Y,Z},
     {X,Y,Z}
};
Agora no OnPlayerCommandText:

pawn Код:
if(strcmp(cmdtext, "/partida", true) == 0)
{
     if(IsPlayerAdmin(playerid))
     {
         for(new i = 0; i < GetMaxPlayers(); i++)
         {
              if(IsPlayerConnected(i))
              {          
                  SetPlayerRaceCheckpoint(i, 0, Checkpoints[1][1], Checkpoints[1][2], Checkpoints[1][3], Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], 10);
                  Stats[i] = 1;
                  return 1;
              }
         }
     }
     else
     {
         SendClientMessage(playerid, COLOR_RED, "Apenas Para Admins");
     }
}
Код:
Checkpoints[1][1] ---> Coordenada 1, valor 1
Checkpoints[1][2] ---> Coordenada 1, valor 2
Checkpoints[1][3] ---> Coordenada 1, valor 3
.....
No OnPlayerEnterCheckpoint:


pawn Код:
{
     switch(Stats[playerid])
     {
         case 1:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10);
              Stats[i] = 2;
              return 1;
         }
         case 2:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], 10);
              Stats[i] = 3;
              return 1;
         }
         case 3:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3]-5, 10);
              Stats[i] = 4;
              return 1;
         }
         case 4:
         {
              DisablePlayerRaceCheckpoint(playerid);
              GameTextForPlayer(playerid, "You have won the race!!", 3000, 1);
              GivePlayerMoney(playerid, 10000);
              return 1;
         }
     }
}

Код:
DisablePlayerRaceCheckpoint(playerid); ----> Tira os CP's jб existentes
SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10); Cria um novo CP
GameTextForPlayer(playerid, "You have won the race!!", 3000, 1); ---> Indica que o Player Ganhou a corrida

__________________________________________________ __________________________________________________ ____________


Crйditos a: pspleo
Topico de origem: http://forum.sa-mp.com/index.php?top...0760#msg340760



PS: Sу postei este Tuto para, claro, vcs saberem como se faz, mas tb para eu n o perder, pois perdi horas a procura dele


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - russo666 - 24.04.2010

Excelent! Eu andava para procurar sobre race check points mas nгo estava com vontade. --'

Obrigadгo!


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - ipsBruno - 24.04.2010

Bom Andmeida, Belos Tutos
Nгo quer ser mesmo postador do meu Blog Gato? rs


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - xolp25 - 25.04.2010

otimo tuto!


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - lomato - 07.05.2010

como fasso pra criar uma corrida com essas 12 cordenadas? ja tentei de tudo e nao consegui!

AddPlayerClass(137,3116.8188,-2054.5698,3.5096,284.8593,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 1
AddPlayerClass(137,3125.7852,-1768.5270,3.5096,352.5399,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 2
AddPlayerClass(137,3345.8813,-1770.8011,5.4053,255.4057,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 3
AddPlayerClass(137,3477.7815,-1811.6428,3.4826,227.8321,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 4
AddPlayerClass(137,3620.3569,-1988.3201,5.6010,139.1579,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 5
AddPlayerClass(137,3517.7246,-2004.3265,3.4800,32.9368,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 6
AddPlayerClass(137,3508.9717,-2166.2795,3.4780,182.3982,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 7
AddPlayerClass(137,3501.0178,-2393.7158,3.4574,179.8915,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 8
AddPlayerClass(137,3406.2468,-2494.4087,3.4574,86.2040,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 9
AddPlayerClass(137,3310.3005,-2359.6292,3.4574,99.0507,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 10
AddPlayerClass(137,3118.5750,-2352.3428,3.4574,331.8362,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL 11
AddPlayerClass(137,3124.1780,-2053.6074,3.4574,0.3498,0,0,0,0,0,0); // CHECKPOINT CORRIDA NORMAL FINAL


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - russo666 - 07.05.2010

Precisas pegar as coordenadas do 'AddPlayerClass'.
Jб agora o 'AddPlayerClass' serve para meter Skins.

AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - lomato - 09.05.2010

assim?


new Stats[MAX_PLAYERS];
new CheckPoints[12][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z)
{
{3116.8188,-2054.5698,3.5096},
{3125.7852,-1768.5270,3.5096},
{3345.8813,-1770.8011,5.4053},
{3477.7815,-1811.6428,3.4826},
{3620.3569,-1988.3201,5.6010},
{3517.7246,-2004.3265,3.4800},
{3508.9717,-2166.2795,3.4780},
{3501.0178,-2393.7158,3.4574},
{3406.2468,-2494.4087,3.4574},
{3310.3005,-2359.6292,3.4574},
{3118.5750,-2352.3428,3.4574},
{3124.1780,-2053.6074,3.4574}
};


public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/partida", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SetPlayerRaceCheckpoint(i, 0, Checkpoints[1][1], Checkpoints[1][2], Checkpoints[1][3], Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], 10);
Stats[i] = 1;
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Apenas Para Admins");
}
}


public OnPlayerEnterCheckpoint(playerid)
{
switch(Stats[playerid])
{
case 1:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10);
Stats[i] = 2;
return 1;
}
case 2:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], 10);
Stats[i] = 3;
return 1;
}
case 3:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3]-5, 10);
Stats[i] = 4;
return 1;
}
case 4:
{
DisablePlayerRaceCheckpoint(playerid);
GameTextForPlayer(playerid, "~b~Voce ~y~ganhou ~w~a ~r~corrida~w~, e ~g~ganhou $10000 ~w~por isso!", 3000, 1);
GivePlayerMoney(playerid, 10000);
return 1;
}
}


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - andmeida10 - 09.05.2010

n vi ao promenor, mas parece tar be,


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - lomato - 09.05.2010

Quote:
Originally Posted by andmeida10
n vi ao promenor, mas parece tar be,
and entao desse jeito que eu mostrei a cima funciona normal? mostrando os 12 check point?


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - andmeida10 - 09.05.2010

como vc fez nao, vc vai ter que pos o case 6, case 7, etc ate ao 12


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - lomato - 09.05.2010

Code:
new Stats[MAX_PLAYERS];
new CheckPoints[12][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z) 
{
     {3116.8188,-2054.5698,3.5096},
     {3125.7852,-1768.5270,3.5096},
     {3345.8813,-1770.8011,5.4053},     
     {3477.7815,-1811.6428,3.4826},     
     {3620.3569,-1988.3201,5.6010},     
     {3517.7246,-2004.3265,3.4800},     
     {3508.9717,-2166.2795,3.4780},     
     {3501.0178,-2393.7158,3.4574},     
     {3406.2468,-2494.4087,3.4574},     
     {3310.3005,-2359.6292,3.4574},     
     {3118.5750,-2352.3428,3.4574},
     {3124.1780,-2053.6074,3.4574}
};


//public OnPlayerCommandText(playerid, cmdtext[])
//{
if(strcmp(cmdtext, "/corrida", true) == 0)
{
     if(IsPlayerAdmin(playerid))
     {
         for(new i = 0; i < GetMaxPlayers(); i++)
         {
              if(IsPlayerConnected(i))
              {           
                  SetPlayerRaceCheckpoint(i, 0, Checkpoints[1][1], Checkpoints[1][2], Checkpoints[1][3], Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], 10);
                  Stats[i] = 1;
                  return 1;
              }
         }
     }
     else
     {
         SendClientMessage(playerid, COLOR_RED, "Apenas Para Admins");
     }
}


//public OnPlayerEnterCheckpoint(playerid)
//{
     switch(Stats[playerid])
     {
         case 1:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10);
              Stats[i] = 2;
              return 1;
         }
         case 2:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], 10);
              Stats[i] = 3;
              return 1;
         }
         case 3:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3]-5, 10);
              Stats[i] = 4;
              return 1;
         }
         case 4:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[5][1], Checkpoints[5][2], Checkpoints[5][3], Checkpoints[5][1], Checkpoints[5][2], Checkpoints[5][3]-5, 10);
              Stats[i] = 5;
              return 1;
         }         
         case 5:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[6][1], Checkpoints[6][2], Checkpoints[6][3], Checkpoints[6][1], Checkpoints[6][2], Checkpoints[6][3]-5, 10);
              Stats[i] = 6;
              return 1;
         }         
         case 6:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[7][1], Checkpoints[7][2], Checkpoints[7][3], Checkpoints[7][1], Checkpoints[7][2], Checkpoints[7][3]-5, 10);
              Stats[i] = 7;
              return 1;
         }         
         case 7:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[8][1], Checkpoints[8][2], Checkpoints[8][3], Checkpoints[8][1], Checkpoints[8][2], Checkpoints[8][3]-5, 10);
              Stats[i] = 8;
              return 1;
         }         
         case 8:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[9][1], Checkpoints[9][2], Checkpoints[9][3], Checkpoints[9][1], Checkpoints[9][2], Checkpoints[9][3]-5, 10);
              Stats[i] = 9;
              return 1;
         }         
         case 9:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[10][1], Checkpoints[10][2], Checkpoints[10][3], Checkpoints[10][1], Checkpoints[10][2], Checkpoints[10][3]-5, 10);
              Stats[i] = 10;
              return 1;
         }         
         case 10:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[11][1], Checkpoints[11][2], Checkpoints[11][3], Checkpoints[11][1], Checkpoints[11][2], Checkpoints[11][3]-5, 10);
              Stats[i] = 11;
              return 1;
         }         
         case 11:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[12][1], Checkpoints[12][2], Checkpoints[12][3], Checkpoints[12][1], Checkpoints[12][2], Checkpoints[12][3]-5, 10);
              Stats[i] = 12;
              return 1;
         }         
         case 12:
         {
              DisablePlayerRaceCheckpoint(playerid);
              GameTextForPlayer(playerid, "~b~Voce ~y~ganhou ~w~a ~r~corrida~w~, e ~g~ganhou $10000 ~w~por isso!", 3000, 1);
              GivePlayerMoney(playerid, 10000);
              return 1;
         }
     }
}
assim?





Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - andmeida10 - 10.05.2010

Quote:
Originally Posted by lomato
Code:
new Stats[MAX_PLAYERS];
new CheckPoints[12][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z) 
{
    {3116.8188,-2054.5698,3.5096},
    {3125.7852,-1768.5270,3.5096},
    {3345.8813,-1770.8011,5.4053},    
    {3477.7815,-1811.6428,3.4826},    
    {3620.3569,-1988.3201,5.6010},    
    {3517.7246,-2004.3265,3.4800},    
    {3508.9717,-2166.2795,3.4780},    
    {3501.0178,-2393.7158,3.4574},    
    {3406.2468,-2494.4087,3.4574},    
    {3310.3005,-2359.6292,3.4574},    
    {3118.5750,-2352.3428,3.4574},
    {3124.1780,-2053.6074,3.4574}
};


//public OnPlayerCommandText(playerid, cmdtext[])
//{
if(strcmp(cmdtext, "/corrida", true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
         for(new i = 0; i < GetMaxPlayers(); i++)
         {
             if(IsPlayerConnected(i))
             {          
                  SetPlayerRaceCheckpoint(i, 0, Checkpoints[1][1], Checkpoints[1][2], Checkpoints[1][3], Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], 10);
                  Stats[i] = 1;
                  return 1;
             }
         }
    }
    else
    {
         SendClientMessage(playerid, COLOR_RED, "Apenas Para Admins");
    }
}


//public OnPlayerEnterCheckpoint(playerid)
//{
    switch(Stats[playerid])
    {
         case 1:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10);
             Stats[i] = 2;
             return 1;
         }
         case 2:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], 10);
             Stats[i] = 3;
             return 1;
         }
         case 3:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3]-5, 10);
             Stats[i] = 4;
             return 1;
         }
         case 4:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[5][1], Checkpoints[5][2], Checkpoints[5][3], Checkpoints[5][1], Checkpoints[5][2], Checkpoints[5][3]-5, 10);
             Stats[i] = 5;
             return 1;
         }         
         case 5:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[6][1], Checkpoints[6][2], Checkpoints[6][3], Checkpoints[6][1], Checkpoints[6][2], Checkpoints[6][3]-5, 10);
             Stats[i] = 6;
             return 1;
         }         
         case 6:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[7][1], Checkpoints[7][2], Checkpoints[7][3], Checkpoints[7][1], Checkpoints[7][2], Checkpoints[7][3]-5, 10);
             Stats[i] = 7;
             return 1;
         }         
         case 7:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[8][1], Checkpoints[8][2], Checkpoints[8][3], Checkpoints[8][1], Checkpoints[8][2], Checkpoints[8][3]-5, 10);
             Stats[i] = 8;
             return 1;
         }         
         case 8:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[9][1], Checkpoints[9][2], Checkpoints[9][3], Checkpoints[9][1], Checkpoints[9][2], Checkpoints[9][3]-5, 10);
             Stats[i] = 9;
             return 1;
         }         
         case 9:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[10][1], Checkpoints[10][2], Checkpoints[10][3], Checkpoints[10][1], Checkpoints[10][2], Checkpoints[10][3]-5, 10);
             Stats[i] = 10;
             return 1;
         }         
         case 10:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[11][1], Checkpoints[11][2], Checkpoints[11][3], Checkpoints[11][1], Checkpoints[11][2], Checkpoints[11][3]-5, 10);
             Stats[i] = 11;
             return 1;
         }         
         case 11:
         {
             DisablePlayerRaceCheckpoint(playerid);
             SetPlayerRaceCheckpoint(playerid, 1, Checkpoints[12][1], Checkpoints[12][2], Checkpoints[12][3], Checkpoints[12][1], Checkpoints[12][2], Checkpoints[12][3]-5, 10);
             Stats[i] = 12;
             return 1;
         }         
         case 12:
         {
             DisablePlayerRaceCheckpoint(playerid);
             GameTextForPlayer(playerid, "~b~Voce ~y~ganhou ~w~a ~r~corrida~w~, e ~g~ganhou $10000 ~w~por isso!", 3000, 1);
             GivePlayerMoney(playerid, 10000);
             return 1;
         }
    }
}
assim?




sim visto a pressa ta certo


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - lomato - 10.05.2010

porque nao funciona? da error com as ARAAY :,(

http://pastebin.com/B4Dz3BPZ


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - ipsBruno - 24.05.2010

Jesus o cara que crio esse tuto acho que nгo tinha noзгo aqui deu muitos erro de tag

Ao Invйs de
pawn Code:
new Checkpoints[4][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z)
й
pawn Code:
new Float:Checkpoints[4][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z)
Tem mais erros que estou a tentar descobrir


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - Comando_DS - 25.05.2010

Serб que alguem pode me ajudar? deu esses erros.

pawn Code:
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(448) : error 017: undefined symbol "Checkpoint"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(448) : warning 215: expression has no effect
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(448) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(448) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(448) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Linha do Erro
pawn Code:
SetPlayerRaceCheckpoint(i, 0, Checkpoint[1][1], Checkpoint[1][2], Checkpoint[1][3], Checkpoint[2][1], Checkpoint[2][2], Checkpoint[2][3], 10);



Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - russo666 - 25.05.2010

Na array multidimensional(acho que й assim o nome, ou estou errado. lol) estб Checkpoints nгo Checkpoint.


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - andmeida10 - 25.05.2010

Quote:
Originally Posted by russooooo
Na array multidimensional(acho que й assim o nome, ou estou errado. lol) estб Checkpoints nгo Checkpoint.
mas lб em cima no new ta Checkpoints, e para o que estбs a falar й o Checkpoints do plural que conta


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - russo666 - 25.05.2010

Quote:
Originally Posted by andmeida10
Quote:
Originally Posted by russooooo
Na array multidimensional(acho que й assim o nome, ou estou errado. lol) estб Checkpoints nгo Checkpoint.
mas lб em cima no new ta Checkpoints, e para o que estбs a falar й o Checkpoints do plural que conta
Nгo percebi nada do que disseste, mas vк o que eu quero dizer:

Quote:
Originally Posted by andmeida10
new Float:Checkpoints[4][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z)
{
{X,Y,Z},
{X,Y,Z},
{X,Y,Z},
{X,Y,Z}
};
Quote:
Originally Posted by Comando_DS
Linha do Erro

SetPlayerRaceCheckpoint(i, 0, Checkpoint[1][1], Checkpoint[1][2], Checkpoint[1][3], Checkpoint[2][1], Checkpoint[2][2], Checkpoint[2][3], 10);



Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - Comando_DS - 25.05.2010

Quote:
Originally Posted by russooooo
Na array multidimensional(acho que й assim o nome, ou estou errado. lol) estб Checkpoints nгo Checkpoint.
sу tirei o S, mais com ou sem S da os mesmos erros


Re: [TUT]Como Criar uma Corrida por RaceCheckpoint - russo666 - 25.05.2010

O tuto estб mal feito. E eu agora nгo estou com disposiзгo para corrigir. Espera alguйm.