K/D ratio in sql database
#1

K/D ratio in sql database

?
Reply
#2

Isn't that just Kill divided by Deaths? It doesn't even need to be saved, just divide the player arrays.
Reply
#3

I dont rly understand what you want, something like this or?

Код:
new string[ 64 ], Float:ratio;
if ( kills[playerid] > deaths[playerid] ) {
ratio = float(kills[playerid])/float(deaths[playerid]);
format(string,sizeof(string),"Ratio: %0.2f - Kills to deaths.", ratio);
SendClientMessage( playerid, -1, string );
} else if ( kills[playerid] < deaths[playerid] ) {
ratio = float(deaths[playerid])/float(kills[playerid]);
format(string,sizeof(string),"Ratio: %0.2f - Deaths to kills.", ratio);
SendClientMessage( playerid, -1, string );
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)