[Ajuda] Ajuda-me Erro Gm samp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda-me Erro Gm samp (
/showthread.php?tid=519777)
Ajuda-me Erro Gm samp -
NtkGames - 15.06.2014
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
Re: Ajuda-me Erro Gm samp -
SpeakDS - 15.06.2014
tente :
Re: Ajuda-me Erro Gm samp -
NtkGames - 15.06.2014
Nгo Funciono speakds vc e o tempest
Re: Ajuda-me Erro Gm samp -
SpeakDS - 15.06.2014
Sim, sou eu
Re: Ajuda-me Erro Gm samp -
NtkGames - 15.06.2014
So eu glad saintzero
Respuesta: Ajuda-me Erro Gm samp -
merloch - 16.06.2014
Espero que ajude: topo do gm
Код:
new PlayerText:ScoreTextDraw[MAX_PLAYERS];