01.02.2014, 10:49
Quote:
The subtraction should be in parentheses otherwise it will do the division first.
pawn Код:
|
pawn Код:
format(string, sizeof(string), "| ..:: Score: %d | Money: %d$ | Kills: %d | Deaths: %d | K/D Ratio: %0.2f | Online for: %d minutes ::.. |", GetPlayerScore(id), GetPlayerMoney(id), PlayerInfo[id][pKills], PlayerInfo[id][pDeaths], Float:PlayerInfo[id][pKills]/Float:PlayerInfo[id][pDeaths], gettime() - ConnectTime[id]);
pawn Код:
format(string, sizeof(string), "| ..:: Score: %d | Money: %d$ | Kills: %d | Deaths: %d | K/D Ratio: %0.2f | Online for: %d minutes ::.. |", GetPlayerScore(id), GetPlayerMoney(id), PlayerInfo[id][pKills], PlayerInfo[id][pDeaths], Float:PlayerInfo[id][pKills]/Float:PlayerInfo[id][pDeaths], gettime() - ConnectTime[id]) /*Here?*/;