19.07.2012, 22:56
Precision when using floats must be in the format "%.(precision)f", not "%(precision).f".
Try:
Try:
pawn Код:
GetWeaponName(reason,gunname,sizeof(gunname));
GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
format(string, sizeof(string), "** %s has killed %s (Weapon: %s)(HP: %.0f).", sName, fName, gunname, (khp+kar));
SendClientMessageToAll(TEAM_AWAY_COLOR,string);