warning 202: number of arguments does not match definition
#5

You are doing it wrong. In order to obtain player's health ou should create a float variable:

pawn Код:
new Float:pHP;
Then store the health value passed by reference:

pawn Код:
GetPlayerHealth(playerid,pHP);
And now you can use pHP to access it value

pawn Код:
format(string,sizeof string,"HP Amount: %.1f",pHP);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)