[Help] Command Error
#5

Quote:
Originally Posted by ConnorW
Посмотреть сообщение
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;
}
Thanks, it works.
Reply


Messages In This Thread
[Help] Command Error - by ApolloScripter - 12.01.2019, 00:03
Re: [Help] Command Error - by d3Pedro - 12.01.2019, 00:25
Re: [Help] Command Error - by ApolloScripter - 12.01.2019, 04:59
Re: [Help] Command Error - by d3Pedro - 12.01.2019, 05:18
Re: [Help] Command Error - by ApolloScripter - 12.01.2019, 19:03

Forum Jump:


Users browsing this thread: 2 Guest(s)