[Help] Command Error
#2

Remove these from LoadTOPTEN
pawn Код:
for(new c = 0; c < 15; c++)
    {
        TextDrawShowForPlayer(playerid, CaixasCTT[c]);
    }

    /*for(new a = 0; a < 14; a++)
    {
        TextDrawShowForPlayer(playerid, ApText[a]);
    }*/


    for(new pl = 0; pl < 12; pl++)
    {
        TextDrawShowForPlayer(playerid, NomeJogador[pl]);
    }

    for(new po = 0; po < 12; po++)
    {
        TextDrawShowForPlayer(playerid, PlayerScore[po]);
    }

    for(new pa = 0; pa < 12; pa++)
    {
        TextDrawShowForPlayer(playerid, PlayerHitRate[pa]);
    }

    TextDrawShowForPlayer(playerid, CloseButton);
    SelectTextDraw(playerid, 0xb0b7c1ff);
remove playerid from LoadTOPTEN leave it LoadTOPTEN()
put LoadTOPTEN at OnGamemodeInit e.g
pawn Код:
public OnGameModeInit()
{
    LoadTOPTEN();
    return 1;
}
And here's the command
pawn Код:
CMD:top(playerid)
{
    for(new c = 0; c < 15; c++)
    {
        TextDrawShowForPlayer(playerid, CaixasCTT[c]);
    }

    /*for(new a = 0; a < 14; a++)
    {
        TextDrawShowForPlayer(playerid, ApText[a]);
    }*/


    for(new pl = 0; pl < 12; pl++)
    {
        TextDrawShowForPlayer(playerid, NomeJogador[pl]);
    }

    for(new po = 0; po < 12; po++)
    {
        TextDrawShowForPlayer(playerid, PlayerScore[po]);
    }

    for(new pa = 0; pa < 12; pa++)
    {
        TextDrawShowForPlayer(playerid, PlayerHitRate[pa]);
    }

    TextDrawShowForPlayer(playerid, CloseButton);
    SelectTextDraw(playerid, 0xb0b7c1ff);
     
     
    SendClientMessage(playerid, DebugColor, "Feito");
    return 1;
}
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: 1 Guest(s)