[AJUDA] Erros
#1

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")
Reply
#2

Posta a linha do Erro..
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)