[Ajuda] bug do id 0
#10

Estou com o mesmo problema ja experimentei muito, mas nao consigo arrumar o erro, alguem me ajuda? A indentacao esta correta. So aqui que deslocou.

Код:
public TextDrawUpdate(playerid)
{
     new string[128];
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
		if(Logged[playerid] == 1)
		{
                    TotalZones();
                    format(string, sizeof(string), "Zones:~w~ %d/%d", OwnedZones[gTeam[i]-1], MAX_ZONES);// <---ERRO do log:  00045988 in public TextDrawUpdate (playerid=0)  Run time error 4: "Array index out of bounds" Accessing element at negative index -1

                    TextDrawSetString(Zones[i], string);
                    TextDrawShowForPlayer(i, Zones[i]);
                    printf("%i", i);
                }
       }
       return 1;
}
Reply


Messages In This Thread
bug do id 0 - by OliverK - 08.06.2015, 15:27
Re: bug do id 0 - by n0minal - 08.06.2015, 15:28
Re: bug do id 0 - by ipsLuan - 08.06.2015, 15:31
Re: bug do id 0 - by OliverK - 08.06.2015, 15:34
Re: bug do id 0 - by ViniBorn - 08.06.2015, 15:34
Re: bug do id 0 - by OliverK - 08.06.2015, 15:36
Re: bug do id 0 - by ModaLOKO - 08.06.2015, 22:41
Re: bug do id 0 - by ipsLuan - 09.06.2015, 00:41
Re: bug do id 0 - by ModaLOKO - 09.06.2015, 20:21
Re: bug do id 0 - by PrettyDiamond - 03.03.2016, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)