19.09.2011, 11:41
Not Working this is the Screen :
i have this inside the inculde a_samp :
and this :
and :
and :
This is All (i have Health:1.1 and don't change as you can see )
i have this inside the inculde a_samp :
PHP код:
new Text:Textdraw0;
new Float:vida;
forward
coisas(playerid);
PHP код:
public coisas(playerid)
{
vida = GetPlayerHealth(playerid,vida);
new text[20];
format(text,sizeof(text),"~g~Health: %.2f",vida);
TextDrawSetString(Textdraw0,text);
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
PHP код:
public OnPlayerConnect(playerid)
{
Textdraw0 = TextDrawCreate(490.000000, 100.000000, "~r~Health:");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
PHP код:
public OnPlayerSpawn(playerid)
{
SetTimerEx( "coisas", 100, true, "i", playerid );
PHP код:
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}