Let's block ads! (Why?)
[Ajuda] Não aparece a textdraw
21/07/2016, 12:08 AM |
#2 |
|
Little Clucker
Join Date: Dec 2015
Posts: 24
Reputation: 1
|
Re: Não aparece a textdraw
PHP Code:
//NO TOPO DA GM
#include <a_samp> new PlayerText:Score; //NO public OnplayerConnect public OnPlayerConnect(playerid)
{ Score = CreatePlayerTextDraw(playerid,52.0, 316.0,""); PlayerTextDrawBackgroundColor(playerid, Score, 255); PlayerTextDrawFont(playerid,Score, 1); PlayerTextDrawLetterSize(playerid,Score, 0.5199, 1.6000); PlayerTextDrawColor(playerid,Score, -1); PlayerTextDrawSetOutline(playerid,Score, 1); SetTimerEx("AtualizarScore", 1000, true,"i",playerid);
} //NO FINAL DA GM forward AtualizarScore(playerid);
public AtualizarScore(playerid)
{
new STR[26]; format(STR, 26, "~r~Level:~w~%d", GetPlayerScore(playerid)); PlayerTextDrawShow(playerid,Score); PlayerTextDrawSetString(playerid,Score,STR);
return true;
}
Avisa ai se der certo.
@edit
Coloca direito cara porque no meu ta dando certo.
|
|
 |
Aucun commentaire:
Enregistrer un commentaire