[AJUDA] Erros - 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: [AJUDA] Erros (
/showthread.php?tid=330944)
[AJUDA] Erros -
Chis - 03.04.2012
https://sampforum.blast.hk/showthread.php?tid=143924
(299) : error 032: array index out of bounds (variable "Checkpoints")
(300) : error 017: undefined symbol "i"
(306) : error 032: array index out of bounds (variable "Checkpoints")
(307) : error 017: undefined symbol "i"
(313) : error 032: array index out of bounds (variable "Checkpoints")
(314) : error 017: undefined symbol "i"
(88

: error 032: array index out of bounds (variable "Checkpoints")
Re: [AJUDA] Erros -
Dark_Max - 03.04.2012
Posta a linha do Erro..
Respuesta: [AJUDA] Erros -
Chis - 03.04.2012
pawn Код:
SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10); //299
Stats[i] = 2;//300
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;
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;
[pawn]
pawn Код:
CMD:trabalhar(playerid, params[])
{
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);//888
Stats[i] = 1;
return 1;
}
}
return 1;
}