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

pawn Код:
stock RandomPlayerPato()
{
    new OnlineUser[MAX_PLAYERS], ContaPlayers = 0;
    for(new i = 0; i <= MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            if(Afk[i] == false)
                if(PlayerLogado[i] == true)
                    if(GetPlayerState(i) != PLAYER_STATE_SPECTATING)
                        if(GetPlayerVirtualWorld(i) == 0)
                            if(!PlayerEsc(i))
                                if(!IsInTrampolim(i))
                                    if(!IsARCvehicle(GetPlayerVehicleID(i)))
                                        if(PlayerInfo[i][tempopreso] == 0)
                                            if(IsPlayerInArea(i,PatoArea))
                                                if(!IsPlayerNPC(i))
                                                    OnlineUser[ContaPlayers] = i, ContaPlayers++;
    return OnlineUser[random(ContaPlayers)];
}
Mas continua a dar esse erro...
Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" - by VeNuZ_ - 26.07.2014, 22:52
Re: Run time error 4: "Array index out of bounds" - by LKING - 26.07.2014, 23:26
Re: Run time error 4: "Array index out of bounds" - by zSuYaNw - 27.07.2014, 01:38
Re: Run time error 4: "Array index out of bounds" - by VeNuZ_ - 27.07.2014, 22:44
Re: Run time error 4: "Array index out of bounds" - by VeNuZ_ - 29.07.2014, 17:48

Forum Jump:


Users browsing this thread: 2 Guest(s)