[AJUDA] Qual e o erro?
#1

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 (c1997-2006ITB CompuPhase
4 Errors

Linhas:
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    for(new 
0MAX_PLAYERSi++)
    {
        switch(
Stats[playerid])
        {
            case 
1:
            {
                
DisablePlayerRaceCheckpoint(playerid);
                
SetPlayerRaceCheckpoint(playerid0Checkpoints[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(playerid0Checkpoints[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(playerid1Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3]-510);
                
Stats[i] = 4;
                return 
1;
            }
            case 
4:
            {
                
DisablePlayerRaceCheckpoint(playerid);
                
GameTextForPlayer(playerid"You have won the race!!"30001);
                
GivePlayerMoney(playerid10000);
                return 
1;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
[AJUDA] Qual e o erro? - by tonisantolia - 02.06.2012, 01:46
Re: [AJUDA] Qual e o erro? - by blacktrindade - 02.06.2012, 11:50
Re: [AJUDA] Qual e o erro? - by paulor - 02.06.2012, 14:56
Re: [AJUDA] Qual e o erro? - by tonisantolia - 02.06.2012, 17:10
Re: [AJUDA] Qual e o erro? - by Bruno Pereira - 02.06.2012, 17:30
Re: [AJUDA] Qual e o erro? - by paulor - 02.06.2012, 17:31

Forum Jump:


Users browsing this thread: 2 Guest(s)