[Ajuda] Run time error 4: "Array index out of bounds"
#1

Olб amigos, estou criando um sistema de Fallout simples, o compilador atй passa, mas ingame estб crashando o servidor. Passei o Crashdetect e deu isso.
Code:
[01:05:28] [debug] Run time error 4: "Array index out of bounds"
[01:05:28] [debug]  Attempted to read/write array element at index 50 in array of size 50
[01:05:28] [debug] AMX backtrace:
[01:05:28] [debug] #0 002c4958 in public IniciandoFallout () at C:\Users\User\Desktop\gamemodes\DME.pwn:45320
PHP Code:
function IniciandoFallout()
{
    
SetTimer("TimerFallout"10000);
    for(new 
0<= MAX_PLAYERSi++)
    {
        if(
Player[i][EmEvento] == 1//Linha do Erro
        
{
            new 
Random random(sizeof(SpawnFallout));
            
SetPlayerPos(iSpawnFallout[Random][0], SpawnFallout[Random][1], SpawnFallout[Random][2]);
            
SendClientMessage(iCOR_CV"Evento Iniciado! Boa Sorte!");
            
TogglePlayerControllable(i1);
        }
    }

Poderiam me ajudar?
Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" - by MarllonGTA - 19.12.2017, 02:15
Re: Run time error 4: "Array index out of bounds" - by rjjj - 19.12.2017, 02:20
Re: Run time error 4: "Array index out of bounds" - by MarllonGTA - 19.12.2017, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)