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.
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;
}
new Text:ScoreTextDraw[MAX_PLAYERS];
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.
new PlayerText:ScoreTextDraw[MAX_PLAYERS]; |