[Ajuda] Ajuda-me Erro Gm samp
#1

Ola Eu fui tentar fazer um como posso dizer sistema de status igual a esse da imagem a baixo que tem casa missoes dinheiro E kilometros



Ai Tudo Blz

Eu fiz com esse codigo

pawn Код:
forward AtualizarScore();
public AtualizarScore()
{
    new STR[26];
    //for(new x=0; x<MAX_PLAYERS; x++)
    for(new i; i < MAX_PLAYERS; i ++)
    {
        format(STR, 26, "~B~PONTOS: ~y~%i", APlayerData[i][PlayerScore]);
        //TextDrawShowForPlayer(x, ScoreTextDraw[x]);
        TextDrawSetString(ScoreTextDraw[i], STR);
    }
    return 1;
}
forward AtualizarStatus();
public AtualizarStatus()
{
    for(new x; x < MAX_PLAYERS; x ++)
    {
        new NumHouses, NumBusinesses;
        for (new i; i < MAX_HOUSESPERPLAYER; i++)
        if (APlayerData[x][Houses][i] != 0)
            NumHouses++;

        for (new i; i < MAX_BUSINESSPERPLAYER; i++)
        if (APlayerData[x][Business][i] != 0)
                NumBusinesses++;
        if(!IsPlayerConnected(x)) continue;
        new STR[900];
        format(STR, 900, "~w~~h~CASAS: %i          EMPRESAS: %i          MS CAMINHONEIRO: %i             QUILOMETROS: %f                  BANCO: %i", NumHouses, NumBusinesses, APlayerData[x][StatsTruckerJobs], APlayerData[x][StatsMetersDriven], APlayerData[x][BankMoney]);
        //TextDrawShowForPlayer(x, StatusTextDraw[x]);
        TextDrawSetString(StatusTextDraw[x], STR);
    }
    return true;
}

Ate ai Blz Tudo certinho ai eu fui compilar o Gm Claro
Ai apareceu esse erro

pawn Код:
C:\Users\Familia\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(130) : error 017: undefined symbol "ScoreTextDraw"
C:\Users\Familia\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(130) : warning 215: expression has no effect
C:\Users\Familia\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(130) : error 001: expected token: ";", but found "]"
C:\Users\Familia\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(130) : error 029: invalid expression, assumed zero
C:\Users\Familia\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(130) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Ai eu pedi ajuda ai falaram pra min colocar esse codigo no topo do gm


new Text:ScoreTextDraw[MAX_PLAYERS];


Ai eu coloquei e nгo adiantou Nada sera que alguem poderia me ajudar a arrumar esses erros por favor
Reply
#2

tente :
pawn Код:
new Text:ScoreTextDraw;
Reply
#3

Nгo Funciono speakds vc e o tempest
Reply
#4

Sim, sou eu
Reply
#5

So eu glad saintzero
Reply
#6

Espero que ajude: topo do gm
Код:
new PlayerText:ScoreTextDraw[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)