new ValorCheck[MAX_PLAYERS];
new Float:Check[3][3] =
{
{1812.910522, -2072.539551, 14.226851},//Vнrgula atй o Penъltimo indicando mais Coordenadas
{1679.7358,-2279.6406,13.5262}//Ъltima Coordenada sem Virgula
};
public OnPlayerEnterRaceCheckpoint(playerid)
{
ValorCheck[playerid]++;
switch(ValorCheck[playerid])
{
case 1:
{
DisablePlayerRaceCheckpoint(playerid);//Desabilita Check
SetPlayerRaceCheckpoint(playerid,1,Check[1][0], Check[1][1], Check[1][2], Checkpoints[2][0], Check[2][1], Check[2][2], 10);//Mostra Check
return 1;
}
case 2:
{
DisablePlayerRaceCheckpoint(playerid);
SendClientMessage(playerid,0xDEEE20FF, "Vocк Venceu a Corrida");
ValorCheck[playerid] = 0;//Reseta Variбvel para nova corrida
return 1;
}
}
return 1;
}
Check[1][0] = Coordenada 1,Valor Numero 1 Check[1][1] = Coordenada 1,Valor Numero 2 Check[1][2] = Coordenada 1,Valor Numero 3 Check[2][0] = Coordenada 2,Valor Numero 1 Check[2][1] = Coordenada 2,Valor Numero 2 Check[2][2] = Coordenada 2,Valor Numero 3 |
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1010) : error 001: expected token: ":", but found ";"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1010) : error 036: empty statement
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1014) : error 017: undefined symbol "Check"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1014) : warning 215: expression has no effect
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1014) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1014) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1014) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
1010: case 1;
1014: SetPlayerRaceCheckpoint(playerid,1,Check[1][1], Check[1][2], Check[1][3], Checkpoints[2][1], Check[2][2], Check[2][3], 10);//Mostra Check
public OnPlayerEnterRaceCheckpoint(playerid)
{
ValorCheck[playerid]++;
switch(ValorCheck[playerid])
{
case 1;
{
DisablePlayerRaceCheckpoint(playerid);//Desabilita Check
SendClientMessage(playerid,COR_LARANJA,"Espera Concluida, Siga para o proximo ponto");
SetPlayerRaceCheckpoint(playerid,1,Check[1][1], Check[1][2], Check[1][3], Checkpoints[2][1], Check[2][2], Check[2][3], 10);//Mostra Check
return 1;
}
case 2;
{
DisablePlayerRaceCheckpoint(playerid);
SendClientMessage(playerid,0xDEEE20FF, "Vocк Venceu a Corrida");
ValorCheck[playerid] = 0;//Reseta Variбvel para nova corrida
return 1;
}
}
return 1;
}
SetPlayerRaceCheckpoint(playerid,1,Check[1][0], Check[1][1], Check[1][2], Checkpoints[2][0], Check[2][1], Check[2][2], 10);//Mostra Check
case 2;
case 2://aqui й DOIS PONTOS
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : error 017: undefined symbol "Check"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : warning 215: expression has no effect
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : 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.
SetPlayerRaceCheckpoint(playerid,1,Check[1][0], Check[1][1], Check[1][2], Checkpoints[2][0], Check[2][1], Check[2][2], 10);//Mostra Check
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : error 017: undefined symbol "Check"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : warning 215: expression has no effect
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1013) : 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.
SetPlayerRaceCheckpoint(playerid,1,Check[1][0], Check[1][1], Check[1][2], Checkpoints[2][0], Check[2][1], Check[2][2], 10);//Mostra Check
@Falcon Desculpa o Erro nгo vi o momento que errei,ja arrumei,pode tentar novamente |
C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(71) : error 052: multi-dimensional arrays must be fully initialized C:\Documents and Settings\Jonathan\Desktop\VirtuaLife.pwn(1012) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
1012: SetPlayerRaceCheckpoint(playerid,1,Check[1][0], Check[1][1], Check[1][2], Checkpoints[2][0], Check[2][1], Check[2][2], 10);//Mostra Check
71: };
SetPlayerRaceCheckpoint(playerid,1,Check[1][0], Check[1][1], Check[1][2], Check[2][0], Check[2][1], Check[2][2], 10);//Mostra Check
}