[AJUDA] Textdraw nгo Aparece - 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] Textdraw nгo Aparece (
/showthread.php?tid=339697)
[AJUDA] Textdraw nгo Aparece -
.FuneraL. - 04.05.2012
Bom pessoal , criei uma Textdraw para Mostrar o Ping do Player , mas hб um Problema , ela nгo estб aparecendo mesmo com o TextDrawShowForPlayer no OnPlayerConnect , se Alguem Ajudar dou +Rep! , Code:
pawn Code:
new Text:Ping[MAX_PLAYERS];
for(new z = 0; z < MAX_PLAYERS; z++)
{
Ping[z] = TextDrawCreate(497, 397, " ");
TextDrawBackgroundColor(Ping[z], 255);
TextDrawFont(Ping[z], 1);
TextDrawLetterSize(Ping[z], 0.440000, 1.500000);
TextDrawColor(Ping[z], -1);
TextDrawSetOutline(Ping[z], 0);
TextDrawSetProportional(Ping[z], 1);
TextDrawSetShadow(Ping[z], 1);
}
e o OnPlayerConnect :
for(new z = 0; z < MAX_PLAYERS; z++)
{
TextDrawShowForPlayer(z, Ping[z]);
}
Re: [AJUDA] Textdraw nгo Aparece -
zbt - 04.05.2012
nгo vai aparecer mesmo, tб em branco TextDrawCreate(497, 397, " ");
Retire esse Loop do onplayerconnect.
Re: [AJUDA] Textdraw nгo Aparece -
Abravanel - 04.05.2012
Estб em branco, nгo vai aparecer nada...
Nгo precisa do loop no OnPlayerConnect
Usa apenas:
pawn Code:
TextDrawShowForPlayer(playerid, Ping[playerid]);
Re: [AJUDA] Textdraw nгo Aparece -
.FuneraL. - 04.05.2012
Quote:
Originally Posted by AFerreira
Estб em branco, nгo vai aparecer nada...
Nгo precisa do loop no OnPlayerConnect
Usa apenas:
pawn Code:
TextDrawShowForPlayer(playerid, Ping[playerid]);
|
Ok , coloquei tipo , o Texto lб , "Seu Ping :" , mas ele nгo aparece o Ping do Player , tenho que por algo para chamar a public dentro da textdraw? , lembrando que dentro da public jб hб a funзгo TextDrawSetString.
Re: [AJUDA] Textdraw nгo Aparece -
Abravanel - 04.05.2012
pawn Code:
//OnPlayerConnect
TextDrawShowForPlayer(playerid, Ping[playerid]);
SetTimerEx("Callback que vocк criou para atualizar o textdraw",2000/*tempo*/,true,"i",playerid);
Re: [AJUDA] Textdraw nгo Aparece -
.FuneraL. - 04.05.2012
Quote:
Originally Posted by AFerreira
pawn Code:
//OnPlayerConnect TextDrawShowForPlayer(playerid, Ping[playerid]); SetTimerEx("Callback que vocк criou para atualizar o textdraw",2000/*tempo*/,true,"i",playerid);
|
Pronto , Arrumei
+Rep man