02.06.2012, 01:46
PHP код:
C:\Documents and Settings\Rodrigues І°№І\Meus documentos\Downloads\Arquivos samp\samp03e_svr_win32\gamemodes\BPW.pwn(231) : error 032: array index out of bounds (variable "Checkpoints")
C:\Documents and Settings\Rodrigues І°№І\Meus documentos\Downloads\Arquivos samp\samp03e_svr_win32\gamemodes\BPW.pwn(238) : error 032: array index out of bounds (variable "Checkpoints")
C:\Documents and Settings\Rodrigues І°№І\Meus documentos\Downloads\Arquivos samp\samp03e_svr_win32\gamemodes\BPW.pwn(245) : error 032: array index out of bounds (variable "Checkpoints")
C:\Documents and Settings\Rodrigues І°№І\Meus documentos\Downloads\Arquivos samp\samp03e_svr_win32\gamemodes\BPW.pwn(508) : error 032: array index out of bounds (variable "Checkpoints")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
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;
}
}
}
return 1;
}