Add HP + Armor
#3

Precision when using floats must be in the format "%.(precision)f", not "%(precision).f".

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);
Reply


Messages In This Thread
Add HP + Armor - by (_AcE_) - 19.07.2012, 22:48
Re: Add HP + Armor - by Kindred - 19.07.2012, 22:56
Re: Add HP + Armor - by blewert - 19.07.2012, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)