gettime function
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The subtraction should be in parentheses otherwise it will do the division first.

pawn Код:
(gettime() - ConnectTime[playerid]) / 60
Eh, here's the string/format i have:

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]);
Do i add it:
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?*/;
xd
Reply


Messages In This Thread
gettime function - by Kyance - 31.01.2014, 14:39
Re: gettime function - by Konstantinos - 31.01.2014, 14:42
Re: gettime function - by Kyance - 31.01.2014, 14:49
Re: gettime function - by Richie© - 31.01.2014, 14:50
Re: gettime function - by Kyance - 01.02.2014, 09:31
Re: gettime function - by Konstantinos - 01.02.2014, 10:02
Re: gettime function - by Kyance - 01.02.2014, 10:49

Forum Jump:


Users browsing this thread: 4 Guest(s)