public coisas(playerid)
{
vida = GetPlayerHealth(playerid,vida);
new text[20];
format(text,sizeof(text),"~g~Vida: %1.1f",vida);
TextDrawSetString(Textdraw0,text);
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
public coisas(playerid)
{
vida = GetPlayerHealth(playerid,vida);
new text[9];
format(text,sizeof(text),"~g~Vida: %f",vida);
TextDrawSetString(Textdraw0,text);
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
pawn Код:
|
public coisas(playerid)
{
new Float:vida;
vida = GetPlayerHealth(playerid, vida);
new text[9];
format(text,sizeof(text),"~g~Vida: %f",vida);
TextDrawSetString(Textdraw0,text);
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
public coisas(playerid)
{
new text[9], Float:vida;
GetPlayerHealth(playerid,vida);
format(text,sizeof(text),"~g~Vida: %f",vida);
TextDrawSetString(Textdraw0,text);
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
public coisas(playerid)
{
new Float:Vida, text[14];
GetPlayerHealth(playerid, Vida);
format(text,sizeof(text),"~g~Vida: %f",vida);
TextDrawSetString(Textdraw0, text);
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
new Text:TextDraw[MAX_PLAYERS];
// ... etc
public coisas(playerid)
{
new Float:vida, text[20];
GetPlayerHealth(playerid, vida);
format(text,sizeof(text),"~g~Vida: %.1f",vida);
TextDrawSetString(Textdraw0,text);
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
printf("%d", floatround(100.0));