Quote:
Originally Posted by Speed
what is here wrong
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { new string[128]; format(string, sizeof(string), "You lost %d HP. Issuerid is: %s, with weapon ID: %i",amount, PlayerName(issuerid), weaponid); SendClientMessage(playerid, -1, string); return 1; }
stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name, sizeof(name)); return name; }
All is good expect ammount of HP, it type 116546 big numbers, any ideas?
|
You lost %f HP not %d. It's a float not an integer.