[Pedido] HP Restante. ++REP.
#1

Bom, eu queria tipo no final do resultado do x1: [X1]: tal Derrotou tal ( HP Restante: tal ).
++REP
Obrigado!
Reply
#2

GetPlayerHealth
Reply
#3

Poderia me dar um exemplo?
Reply
#4

pawn Код:
new s[50], Float:vida;
GetPlayerHealth(killerid, vida);
format(s, 50, "Tal derrotou tal [HP restante %.0f]", vida);
SendClientMessageToAll(-1, s);
Reply
#5

pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
format(string, sizeof(string), "Seu Codigo Mensagem,etc. [HP Restante : %d]", sendername,health);
Acho que seria assim. @-@


nemviquepostaram¬¬
Reply
#6

pawn Код:
new L_STRING[128], L_VIDA = GetPlayerHealth(playerid);
format(L_STRING, 128, "Vocк estб com %f de vida!", L_N);
SendClientMessage(playerid, -1, L_STRING);
Abraзos.
Reply
#7

Riichard
pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
format(string, sizeof(string), "Seu Codigo Mensagem,etc. [HP Restante : %d]", sendername,health);
Isso vai dar Erro , cade o Sendername ?

pawn Код:
format(string, sizeof(string), "Seu HP Atual й %f",health);

%s = Para Letras /string
%d = Para numeros
%f = Para Float's
Podera ver mais aqui > https://sampwiki.blast.hk/wiki/Format

Pronto Editei ...
Reply
#8

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
pawn Код:
format(string, sizeof(string), "Seu HP Atual й %d",health);
Isso tambйm irб dar erro.
O certo й:
pawn Код:
format(string, sizeof(string), "Seu HP Atual й %f",health);
%f = Floatings
Reply
#9

Em qual parte eu falei Que estava certo ?
Nгo vi o Float.. Apenas dei CTRL C e CTRL V.
e Como vi que se tratava de Numeros coloquei o %d .

E mandei o Link da wiki foi para isso.
Reply
#10

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
Em qual parte eu falei Que estava certo ?
Nгo vi o Float.. Apenas dei CTRL C e CTRL V.
e Como vi que se tratava de Numeros coloquei o %d .

E mandei o Link da wiki foi para isso.
Okay, vocк nгo viu, e eu apenas te corrigi.
Qual o problema nisso? lol ._.'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)