invalid array size (negative, zero or out of bounds)
#6

Beacause i want to calculate the number at all team in game and i use 1 loop on a loop it's too much

PHP код:
new COUNTMYTEAM,CountOtherTeam[MAX_PLAYERS],MAXINTEAM;
    foreach(new 
Player)
    {
        if(
gLogged[i])
        {
            if(
PlayerInfo[i][pTeamId] > && GetPlayerTeam(i) == CLAN+PlayerInfo[i][pTeamId])
            {
                if(
PlayerInfo[i][pTeamId] == PlayerInfo[playerid][pTeamId]) COUNTMYTEAM++;
                foreach(new 
Player)
                {
                    if(
gLogged[e])
                    {
                        if(
PlayerInfo[e][pTeamId] == PlayerInfo[i][pTeamId] && PlayerInfo[e][pTeamId] != PlayerInfo[playerid][pTeamId]) CountOtherTeam[e]++;
                        if(
MAXINTEAMCountOtherTeam[e]) MAXINTEAMCountOtherTeam[e];
                    }
                }
            }
        }
    }
       if(
COUNTMYTEAM 1)
       {
          
// code...
        
}
    return 
1
Reply


Messages In This Thread
invalid array size (negative, zero or out of bounds) - by Kyra - 25.07.2013, 02:01
Re: invalid array size (negative, zero or out of bounds) - by DobbysGamertag - 25.07.2013, 02:03
Re: invalid array size (negative, zero or out of bounds) - by Pottus - 25.07.2013, 02:05
Re: invalid array size (negative, zero or out of bounds) - by Kyra - 25.07.2013, 02:47
Re: invalid array size (negative, zero or out of bounds) - by Pottus - 25.07.2013, 04:07
Re: invalid array size (negative, zero or out of bounds) - by Kyra - 25.07.2013, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)