Problem with Health TextDraw
#7

Not Working this is the Screen :


i have this inside the inculde a_samp :
PHP код:
new Text:Textdraw0;
new 
Float:vida;
forward
coisas
(playerid); 
and this :
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;

and :
PHP код:
public OnPlayerConnect(playerid)
{
Textdraw0 TextDrawCreate(490.000000100.000000"~r~Health:");
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw03);
    
TextDrawLetterSize(Textdraw00.5000001.000000);
    
TextDrawColor(Textdraw0, -1);
    
TextDrawSetOutline(Textdraw00);
    
TextDrawSetProportional(Textdraw01);
    
TextDrawSetShadow(Textdraw01); 
and :
PHP код:
public OnPlayerSpawn(playerid)
{
SetTimerEx"coisas"100true"i"playerid ); 
PHP код:
public OnFilterScriptExit()
{
    
TextDrawHideForAll(Textdraw0);
    
TextDrawDestroy(Textdraw0);
    return 
1;

This is All (i have Health:1.1 and don't change as you can see )
Reply


Messages In This Thread
Problem with Health TextDraw - by ServerScripter - 18.09.2011, 20:30
Re: Problem with Health TextDraw - by Leeo_Perez - 19.09.2011, 00:43
Re: Problem with Health TextDraw - by ServerScripter - 19.09.2011, 11:18
Re: Problem with Health TextDraw - by Basicz - 19.09.2011, 11:21
Re: Problem with Health TextDraw - by ServerScripter - 19.09.2011, 11:26
Re: Problem with Health TextDraw - by Basicz - 19.09.2011, 11:29
Re: Problem with Health TextDraw - by ServerScripter - 19.09.2011, 11:41

Forum Jump:


Users browsing this thread: 2 Guest(s)