12.01.2019, 05:18
Quote:
Nothing, still giving the same error, canceling the execution of the rest of the command.
|
Код:
Attempted to read/write array element at index 14 in array of size 14
pawn Код:
CMD:top(playerid)
{
for(new i = 0; i < 14; i++) { TextDrawShowForPlayer(playerid, CaixasCTT[i]); } //here was the error, the script attempted to read a non-existent array
for(new i = 0; i < 14; i++) { TextDrawShowForPlayer(playerid, ApText[i]); }
for(new i = 0; i < 10; i++) { TextDrawShowForPlayer(playerid, NomeJogador[i]); }
for(new i = 0; i < 10; i++) { TextDrawShowForPlayer(playerid, PlayerScore[i]); }
for(new i = 0; i < 10; i++) { TextDrawShowForPlayer(playerid, PlayerHitRate[i]); }
TextDrawShowForPlayer(playerid, CloseButton);
SelectTextDraw(playerid, 0xb0b7c1ff);
SendClientMessage(playerid, DebugColor, "Feito");
return 1;
}