29.11.2012, 05:08
Estб dando o seguinte erro na hora de compilar :
na linha:
cуdigo:
O que й? como resolver ?
PHP код:
array index out of bounds (variable "Checkpoints1")
pawn Код:
SetPlayerRaceCheckpoint(i, 0, Checkpoints1[1][1], Checkpoints1[1][2], Checkpoints1[1][3], Checkpoints1[2][1], Checkpoints1[2][2], Checkpoints1[2][3], 10);
pawn Код:
if(IsPlayerAdmin(playerid))
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SetPlayerRaceCheckpoint(i, 0, Checkpoints1[1][1], Checkpoints1[1][2], Checkpoints1[1][3], Checkpoints1[2][1], Checkpoints1[2][2], Checkpoints1[2][3], 10);
Stats[i] = 1;
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Apenas Para Admins");
}
pawn Код:
new Float:Checkpoints1[4][3] =
{
{-2350.8674,-2184.8306,33.7524},
{-2245.6699,-2127.4106,63.6550},
{-2162.8430,-2041.3333,92.0730},
{-2099.5679,-1893.6139,109.7994}
};