15.06.2014, 12:48
Alguem Me ajuda com esse erro o
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 Код:
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;
}