WHAT?!
#2

PHP код:
public OnPlayerConnect(playerid

        
hdisplay[playerid] = TextDrawCreate(505.625000427.583404"Health:"); 
    
TextDrawLetterSize(hdisplay[playerid], 0.4693752.020000); 
    
TextDrawAlignment(hdisplay[playerid], 1); 
    
TextDrawColor(hdisplay[playerid], -5963521); 
    
TextDrawSetShadow(hdisplay[playerid], 0); 
    
TextDrawSetOutline(hdisplay[playerid], 1); 
    
TextDrawBackgroundColor(hdisplay[playerid], 51); 
    
TextDrawFont(hdisplay[playerid], 1); 
    
TextDrawSetProportional(hdisplay[playerid], 1); 
        return 
1

Try this

Код:
public OnPlayerConnect(playerid) 
{ 
    hdisplay[playerid] = TextDrawCreate(505.625000, 427.583404, "Health:"); 
    TextDrawLetterSize(hdisplay[playerid], 0.469375, 2.020000); 
    TextDrawAlignment(hdisplay[playerid], 1); 
    TextDrawColor(hdisplay[playerid], -5963521); 
    TextDrawSetShadow(hdisplay[playerid], 0); 
    TextDrawSetOutline(hdisplay[playerid], 1); 
    TextDrawBackgroundColor(hdisplay[playerid], 51); 
    TextDrawFont(hdisplay[playerid], 1); 
    TextDrawSetProportional(hdisplay[playerid], 1); 
    return 1; 
}
PHP код:
public OnPlayerEnterVehicle(playeridvehicleid

        new 
FloathealthszText[10]; 
    
GetVehicleHealth(vehicleidhealth); 
    
format(szTextsizeof (szText), "%.2f"health); 
    
PlayerTextDrawSetString(playeridhdisplay[playerid], szText); 
    
PlayerTextDrawShow(playeridhdisplay[playerid]); 
        return 
1

tryy
Код:
public OnPlayerEnterVehicle(playerid, vehicleid) 
{ 
    new Float: health, szText[10]; 
    GetVehicleHealth(vehicleid, health); 
    format(szText, sizeof (szText), "%.2f", health); 
    PlayerTextDrawSetString(playerid, hdisplay[playerid], szText); 
    PlayerTextDrawShow(playerid, hdisplay[playerid]); 
    return 1; 
}
Reply


Messages In This Thread
WHAT?! - by Micko123 - 18.05.2016, 17:23
Re: WHAT?! - by RedRex - 18.05.2016, 17:26
Re: WHAT?! - by J0sh... - 18.05.2016, 17:28
Re: WHAT?! - by Micko123 - 18.05.2016, 17:28
Re: WHAT?! - by J0sh... - 18.05.2016, 17:30
Re: WHAT?! - by Sjn - 18.05.2016, 17:37
Re: WHAT?! - by Micko123 - 18.05.2016, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)