03.03.2016, 15:23
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; }