[Ajuda] Bug estranho! - 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] Bug estranho! (
/showthread.php?tid=534200)
Bug estranho! -
best95 - 28.08.2014
WARNINGS
warning 213: tag mismatch
LINHAS:
TA NO ONPLAYERSPAWN
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
Re: Bug estranho! -
Spectral - 28.08.2014
No topo coloca no fim das variбveis a definiзгo [MAX_PLAYERS]
pawn Код:
//Exemplo
new Text:Health[MAX_PLAYERS];
Em OnGamemodeInit coloca esse loop acima das textdraws:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
//Cуdigo das TextDraws aqui
}
Nгo esquece de colocar no fim da variбvel o simbolo "i":
pawn Код:
//Exemplo
Health[i] = TextDrawCreate(566.000000, 67.000000, "100%");
TextDrawBackgroundColor(Health[i], 255);
TextDrawFont(Health[i], 1);
TextDrawLetterSize(Health[i], 0.219999, 0.899999);
TextDrawColor(Health[i], -1);
TextDrawSetOutline(Health[i], 1);
TextDrawSetProportional(Health[i], 1);
Na public OnPlayerSpawn coloca [playerid] no fim:
pawn Код:
//Exemplo
TextDrawShowForPlayer(playerid, Health[playerid]);
Re: Bug estranho! -
best95 - 29.08.2014
Vlw mesmo mano deu certinho!!
Re: Bug estranho! -
Spectral - 29.08.2014
Quote:
Originally Posted by best95
Vlw mesmo mano deu certinho!!
|
De nada