[Ajuda] Ajuda Com erro
#1

Alguem Me ajuda com esse erro o

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.


Obs Tinha um codigo la que era pra fazer tipo status ai eu so coloquei no meu gm e ta dando esse erro ae



Esse e o 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;
}
Reply
#2

No topo da gm Caso nгo tenha coloque:
pawn Код:
new Text:ScoreTextDraw[MAX_PLAYERS];
Reply
#3

No deu certo deu esses erros


pawn Код:
C:\Users\Familia\Desktop\PPC_Trucking.pwn(198) : warning 225: unreachable code
C:\Users\Familia\Desktop\PPC_Trucking.pwn(198) : warning 217: loose indentation
C:\Users\Familia\Desktop\PPC_Trucking.pwn(201) : warning 217: loose indentation
C:\Users\Familia\Desktop\PPC_Trucking.pwn(242) : error 021: symbol already defined: "ScoreTextDraw"
C:\Users\Familia\Desktop\PPC_Trucking.pwn(274) : error 017: undefined symbol "StatusTextDraw"
C:\Users\Familia\Desktop\PPC_Trucking.pwn(274) : warning 215: expression has no effect
C:\Users\Familia\Desktop\PPC_Trucking.pwn(274) : error 001: expected token: ";", but found "]"
C:\Users\Familia\Desktop\PPC_Trucking.pwn(274) : error 029: invalid expression, assumed zero
C:\Users\Familia\Desktop\PPC_Trucking.pwn(274) : fatal error 107: too many error messages on one line

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


5 Errors.
Reply
#4

tente isso topo do gm
Quote:

new PlayerText:ScoreTextDraw[MAX_PLAYERS];

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)