Oh I'm sorry, i did just copied your code at the command, so here's why it crash
Код:
Attempted to read/write array element at index 14 in array of size 14
Now it should work, also use Zeex's pawn compiler, is way much better.
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;
}